maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Preserve comments

Open CThuleHansen opened this issue 4 years ago • 1 comments

Currently comments are removed during parsing. This should not be the case.

CThuleHansen avatar Oct 28 '20 12:10 CThuleHansen

It is definitely useful to be able to keep comments within the AST. But it can be tricky to do this because comments do not appear in the grammar. Apparently the ANTLR parser will help you though. I managed to find this: https://stackoverflow.com/a/17960734/1907838.

nickbattle avatar Oct 28 '20 12:10 nickbattle