That could be due to virtual tokens (ANTLR token with no length)

Maybe I've done something insufficient here:
https://github.com/apache/netbeans/blob/15ad55e3f28727e64a4642971f3a980b538c6d4d/ide/lexer.antlr4/src/org/netbeans/spi/lexer/antlr4/AbstractAntlrLexerBridge.java#L152

On Mon, Feb 13, 2023 at 11:52 AM Antonio <anto...@vieiro.net.invalid> wrote:

> Hi,
>
> Well, the Antlr4 lexer/parser works pretty well, but from time to time
> it throws an AssertionError [1] and freezes NetBeans, so it needs more
> work. Detecting test cases (by opening random Rust projects) and
> detecting where things break is useful.
>
> But there're lots of things to do: improve syntax coloring (macros, for
> instance, could be in another color, and numbers), add code folds for
> structs, etc.
>
> Cheers,
> Antonio
>
> [1]
>
> https://github.com/apache/netbeans/blob/c084119009d2e0f736f225d706bc1827af283501/ide/lexer/src/org/netbeans/spi/lexer/LexerInput.java#L257
>
> On 13/2/23 19:33, Jakub Herkel wrote:
> > Antonio, is there any list of things that you want (need) to
> > implement? Maybe someone (me also) can take some of them.
> >
> > Jakub
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Reply via email to