You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to auto-generate the "injection grammar" on startup based on the languages installed?
I'm asking because I'd love to use this for a custom DSL I made to make the parser tests more readable. Because I'm the only one that uses it I feel like adding it to this repository wouldn't make sense.
I'm sorry if this is a stupid question, I barely know enough about VS Code extension development to create the syntax highlighting for my DSL.
The text was updated successfully, but these errors were encountered:
That looks very interesting, I might try to take a short at this myself if I can find the time.
If I understand correctly, it provides the vetur.grammar.customBlocks configuration option where users can provide their own 'language mappings'. When the vetur.generateGrammar command is run it directly modifies its own grammar file, adding the custom 'injections'.
Is that accurate? Sorry, I'm just a total noob when it comes to vs code development.
If that's indeed what's happening: what happens when you update the extension, does the grammar file get overriden? If that's the case, is it possible to run the generation command automatically post-install?
Would it be possible to auto-generate the "injection grammar" on startup based on the languages installed?
I'm asking because I'd love to use this for a custom DSL I made to make the parser tests more readable. Because I'm the only one that uses it I feel like adding it to this repository wouldn't make sense.
I'm sorry if this is a stupid question, I barely know enough about VS Code extension development to create the syntax highlighting for my DSL.
The text was updated successfully, but these errors were encountered: