Refactored PowerShell language definitions#7522
Conversation
For details see PowerShell/EditorSyntax#7
|
Hi @gravejester, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
|
Hey guys, This PR contains a bunch of really nice improvements to the TextMate syntax definition for PowerShell. @gravejester originally made these changes over at the PowerShell team's new repo to centralize development on our TextMate grammar: https://github.com/PowerShell/EditorSyntax I noticed that the Travis CI build failed due to a colorization test that failed due to these changes. Can you tell us where those tests are and how to run them so that @gravejester can fix as part of the PR? Thanks! |
|
/cc @aeschli |
|
Thanks for the pull request, @gravejester ! Feel free to add more tests or modify the existing one. Let me know if you want me to just update the test result, or if you want to have a look. |
|
Looks awesome! I've been using VSCode for PS a lot lately since it's highlighting is somewhat better than some other editors I usually use, and has been improving. I'd say that this covers the rest of the highlighting cases I felt were missing. I noticed that Looking forward to trying this in Insider once it is merged in. |
|
@dilijev Yes, if you wan to preview changes, you can look at the two links provided in the first post :) |
|
@gravejester Let me know if you want me to fix the tests by just accepting the new tokens. |
|
@gravejester I meant that |
|
I pushed the PR so todays the last development day for the June release. |
|
Thanks a lot, Martin! I'm happy this will be in the next release. |
|
Hi @gravejester . Total Github noob here so I am not sure this is the place for this but... If I have a variable with a comment hashtag, all other lines in the code will not be color coded. In this example, I use an XML object and refer to the value with '#text'. This was working in the previous release. |
|
@Dragonsong3k I'll take a look at it, and push a fix for the next release. Thanks for the heads-up :) |


This is a total refactoring of the language definitions (.tmlanguage) file.
Notable changes:
{default}Compare: Old vs New
@daviwil