mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more accurately removed unnecessary code
This commit is contained in:
@@ -38,7 +38,7 @@ public class XmlHighlightingLexer extends DelegateLexer {
|
||||
}
|
||||
|
||||
private IElementType fixWrongTokenTypes(IElementType tokenType) {
|
||||
int state = getState();
|
||||
int state = getState() & 0x1f; // __XmlLexer.C_COMMENT_END is last state with value 30
|
||||
if (tokenType == XmlTokenType.XML_NAME) {
|
||||
if (state == __XmlLexer.TAG || state == __XmlLexer.END_TAG) {
|
||||
// translate XML names for tags into XmlTagName
|
||||
|
||||
@@ -64,6 +64,7 @@ import com.intellij.psi.xml.*;
|
||||
%state DOCTYPE
|
||||
%xstate CDATA
|
||||
%state C_COMMENT_START
|
||||
/* this state should be last, number of states should be less than 16 */
|
||||
%state C_COMMENT_END
|
||||
|
||||
ALPHA=[:letter:]
|
||||
|
||||
Reference in New Issue
Block a user