Commit bea280e
Don't match keywords if they are preceded by a dot and add the 'sequence' keyword (SublimeText#186)
* Change keyword matching regex
Keywords (with the exception of 'where' and 'foreach') should not be considered as such if they are preceded by a '.'.
The tests relative to keywords used as members or methods now pass.
'process' is now considered a block keyword.
* Add 'sequence' keyword
Also make the relative syntax test pass.
* Change test assertion in Function syntax test
Now the test reflects the change of the 'process' keyword from uncategorised to block.
* Change Parameter matching regex to match 'PositionalBinding'
The relevant test in the function syntax test now passes.
* Consume string with a trailing dot before checking for keywords
This makes negative lookbehind assertions on keywords unnecessary.
* Add scope to matched unquoted strings
Co-authored-by: deathaxe <[email protected]>
* Match word boundary to avoid highlighting invalid arguments
Co-authored-by: deathaxe <[email protected]>
---------
Co-authored-by: deathaxe <[email protected]>1 parent da9cdd7 commit bea280e
File tree
3 files changed
+18
-5
lines changed- Tests
3 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
132 | | - | |
| 139 | + | |
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
| |||
292 | 299 | | |
293 | 300 | | |
294 | 301 | | |
295 | | - | |
| 302 | + | |
296 | 303 | | |
297 | | - | |
298 | | - | |
| 304 | + | |
| 305 | + | |
299 | 306 | | |
300 | 307 | | |
301 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
1363 | 1369 | | |
1364 | 1370 | | |
1365 | 1371 | | |
| |||
0 commit comments