Fix #24971. PowerShell Extension .bat & .exe Syntax Highlighting Error (#24973)

* Fix #24971. Change regular expression in PowerShell extension syntax highlighting to properly highlight .bat and .exe files

* Fixed error that would include whitespace or other chars

Changed regex to correctly identify a . instead of any character.
This commit is contained in:
Thomas Rayner 2017-04-18 15:13:36 -06:00 committed by Matt Bierner
parent 80f1291f7a
commit da6cbf05e7

View file

@ -240,7 +240,7 @@
</dict>
<dict>
<key>match</key>
<string>(?i:[a-z][a-z0-9]+-?[a-z][a-z0-9]+)(?i:\.(?i:exe|cmd|bat|ps1))</string>
<string>(\b(([A-Za-z0-9\-_\.]+)\.(?i:exe|com|cmd|bat))\b)</string>
<key>name</key>
<string>support.function.powershell</string>
</dict>
@ -1183,4 +1183,4 @@
<key>uuid</key>
<string>f8f5ffb0-503e-11df-9879-0800200c9a66</string>
</dict>
</plist>
</plist>