AntlrVSIX icon indicating copy to clipboard operation
AntlrVSIX copied to clipboard

Action blocks in Antlr grammars should be serviced by a language server.

Open kaby76 opened this issue 5 years ago • 1 comments

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.

kaby76 avatar Apr 16 '20 17:04 kaby76

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

kaby76 avatar Jul 16 '20 10:07 kaby76