Skip to content

Commit

Permalink
handle bad tokens anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
VISTALL committed Jun 18, 2024
1 parent 12aecb7 commit ee5d322
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.consulo
!/.consulo/codeStyleSettings.xml
/out
/target
/target
sandbox/
4 changes: 3 additions & 1 deletion src/main/java/org/intellij/lang/jflex/lexer/JFlex.flex
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,6 @@ RegExpPostfix = [\*\+\?]
}

//todo: remove from here
{LineTerminator}+ { return JFlexElementTypes.WHITE_SPACE; }
{LineTerminator}+ { return JFlexElementTypes.WHITE_SPACE; }

[^] { return JFlexElementTypes.BAD_CHARACTER; }

0 comments on commit ee5d322

Please sign in to comment.