Andrew Leppard
Andrew Leppard
That makes sense! The lexer can't match the regular expression pattern if there is a newline between \ and another \ because a newline can't be part of a regular...
One potential (but a bit hacky) fix is to add "JavaScriptLexer.LessThan" to the list of tokens in jsx/Java/JavaScriptLexerBase.java's IsRegexPossible function ``` /** * Returns {@code true} if the lexer can...
Would you mind expanding on what you mean by "the lexer grammar should be rewritten to account for the embedded HTML"? Thanks in advance.
Is it even possible to write a compliant Jsx parser in Antlr? If you encounter say `````` I believe you'd want the lexer to identify the tokens like "". To...
Thanks very much for your help. I've created a PR that fixes this issue: https://github.com/antlr/grammars-v4/pull/3958 I've taken your advice here and have used the lexer to create separate modes to...
I've created a PR https://github.com/antlr/grammars-v4/pull/3973 that upgrades the JavaScript part of TypeScript from the existing JavaScript grammar file, and adds a couple of Typescript improvements.
I've created a new PR https://github.com/antlr/grammars-v4/pull/3978 that upgrades it to v2.7. This is still far off the latest version of v5.3 or so; but it should be much more compatible...