This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Usecase: following css code is incorrectly lexed: .u { } An error token is created for 'u ' characters instead of two separate tokens IDENT+WS. This happens due to some issue in the ANTLRs lexer's DFA prediction table which for the mentioned char sequence predicts the URI token will be created. This is incorrect leads to the error token creation. The same problem happens for 'ur ' sequence. Normally the DFA should predict the IDENT token. I cannot figure out simply why this happens so I'm filling this issue and will work on it. The issue has been found during evaluation of the following test failure: org.netbeans.modules.css.editor.indent.CssIndenterTest.testFormattingNetBeansCSS I've create a new unit test NbCss3LexerTest.testLexingOfUPlusWSChar() which simulates the issue.
fixed in web-main#7beea9ef8e0f
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/7beea9ef8e0f User: Marek Fukala <mfukala@netbeans.org> Log: #200569 - Lexing of 'u' + ' ' characaters sequence produces error token instead of IDENT+WS tokens