mjbvz / vscode-fenced-code-block-grammar-injection-example

Example of injecting a new grammar into VSCode's builtin markdown syntax highlighting for fenced code blocks
MIT License
98 stars 26 forks source link

Supporting aliases #4

Closed glebec closed 6 years ago

glebec commented 6 years ago

Following these steps I was able to get haskell to work properly. I want to also add hs – is there any way to reuse a single json file and/or grammar config to support both aliases, or do I need to create a brand new copy of each? It's fine if the latter is the case, just checking. Thanks!

mjbvz commented 6 years ago

Yes, just use (haskell|hs) in the syntax's begin rule.

glebec commented 6 years ago

Thanks @mjbvz!