michaelgmcd / vscode-language-babel

VSCode syntax highlighting for today's JavaScript
https://marketplace.visualstudio.com/items?itemName=mgmcdermott.vscode-language-babel
MIT License
131 stars 17 forks source link

Support syntax highlighting for Flow enums #63

Closed gkz closed 4 years ago

gkz commented 4 years ago

Adds support for highlighting Flow enums. For some background on the syntax, you can see https://github.com/gkz/enums

Flow Parser, Babel parser (with Flow syntax plugin), Prettier, and Babel-ESLint already support Flow Enums.

This is the first time I have edited TextMate grammars. I have attempted to follow the existing patterns, but feel free to point out if I am doing something incorrectly.

One (convenient) thing to note is that enum is already a reserved keyword in JS.

Screen Shot 2020-03-02 at 16 22 33
michaelgmcd commented 4 years ago

Thanks for the PR! I’m hoping to review and test it this week.

Sent with GitHawk

gkz commented 4 years ago

Thank you! Just FYI I plan some updates to the PR later today