forked from SublimeText/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't match keywords if they are preceded by a dot and add the 'seque…
…nce' 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 <deathaxe82@googlemail.com> * Match word boundary to avoid highlighting invalid arguments Co-authored-by: deathaxe <deathaxe82@googlemail.com> --------- Co-authored-by: deathaxe <deathaxe82@googlemail.com>
- Loading branch information
1 parent
da9cdd7
commit bea280e
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters