AntlrVSIX
AntlrVSIX copied to clipboard
Action blocks in Antlr grammars should be serviced by a language server.
Action block, predicates, member code is defined in the target language. The code contained in these blocks is currently just text to the Antlr LSP server, but it should be handled by the appropriate server. So, I should be able to this code, and go to the definition. It should be colorized, and tooltips should appear. Unfortunately, there are no heterogeneous file types in LSP.
Some progress on this issue. I figured out that I can call Antlr recursively for a code block for action blocks. A prototype for this idea is here. https://github.com/kaby76/AntlrExamples/tree/master/AntlrTargetCSharp