Releases: SublimeText/PowerShell
5.0.0 Contexts and Commands
This is a large syntax change with substantial modification to where some keywords are able to be used.
If you find bugs, especially egregious ones that break code highlighting further down in the file, please file an issue and include "v5" in the title.
Standout improvements
-
Commands are recognized without Verb-Noun format.
-
Command arguments are more conscientiously marked, including unquoted strings.
-
String contents are sometimes interpreted specially, though not in all cases. Some examples:
-
Here-strings beginning with
using Systemare highlighted with C#. -
Command argument strings recognize wildcards and path separators.
-
Single-quoted strings in certain cases are highlighted with Regular Expressions.
-
Other strings recognize some format placeholders.
-
-
usingimports can only come at the beginning of a file. -
metascopes are used in more places, which doesn't typically affect highlighting, but sometimes has an effect on ST commands.
4.0.0 Rewrite in YAML
This is a sizable change to scope names more consistent with other Sublime Text syntaxes. The big rewrite at EditorSyntax for VS Code will not be compatible with Sublime Text, so we're cutting loose early.
This syntax definition is not perfect, but it's a marked improvement on what we had before.