Replies: 2 comments 2 replies
-
We expect the grammars to be in the format and locations ready to use by the respective editors, without processing, as seen in the code here: linguist/tools/grammars/compiler/loader.go Lines 119 to 128 in 8a2415b Anything else is ignored. If you were to try to add that grammar to linguist, the script will report an error because the grammar can't be used as-is directly from the repo. We then convert these to JSON for our highlighting engine, if not already in JSON format. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. I am trying around with renaming the grammar, so it's recognized by linguist and ran into another question/problem:
|
Beta Was this translation helpful? Give feedback.
-
The grammar in https://github.com/serkonda7/vscode-vba is written in yaml (because it's just better).
It's converted to JSON before extension releases to VS Code. How to do this for linguist?
Beta Was this translation helpful? Give feedback.
All reactions