Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Mar 20, 2020
1 parent 5ebeeb9 commit 0841bfc
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 245 deletions.
6 changes: 3 additions & 3 deletions src/antlr/GroovyLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ JavaLetter
{ Character.isJavaIdentifierStart(_input.LA(-1)) }?
| // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF
[\uD800-\uDBFF] [\uDC00-\uDFFF]
{ Character.isJavaIdentifierStart(Character.toCodePoint((char)_input.LA(-2), (char)_input.LA(-1))) }?
{ Character.isJavaIdentifierStart(Character.toCodePoint((char) _input.LA(-2), (char) _input.LA(-1))) }?
;

fragment
Expand All @@ -910,7 +910,7 @@ JavaLetterOrDigit
{ Character.isJavaIdentifierPart(_input.LA(-1)) }?
| // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF
[\uD800-\uDBFF] [\uDC00-\uDFFF]
{ Character.isJavaIdentifierPart(Character.toCodePoint((char)_input.LA(-2), (char)_input.LA(-1))) }?
{ Character.isJavaIdentifierPart(Character.toCodePoint((char) _input.LA(-2), (char) _input.LA(-1))) }?
;

fragment
Expand All @@ -935,7 +935,7 @@ WS : ([ \t\u000C]+ | LineEscape+) -> skip
NL : LineTerminator { this.ignoreTokenInsideParens(); }
;

// Multiple-line comments(including groovydoc comments)
// Multiple-line comments (including groovydoc comments)
ML_COMMENT
: '/*' .*? '*/' { this.ignoreMultiLineCommentConditionally(); } -> type(NL)
;
Expand Down
Loading

0 comments on commit 0841bfc

Please sign in to comment.