Skip to content

Commit

Permalink
33917: Make lookahead for NL also match CR
Browse files Browse the repository at this point in the history
  • Loading branch information
brouwers-tiobe committed Apr 3, 2024
1 parent 55837f3 commit 86bed09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ EXPANDABLE_STRING_START
;

EXPANDABLE_HERE_STRING_END
: DOUBLE_QUOTE '@' { _input.LA(-3) == '\n' }?
: DOUBLE_QUOTE '@' { _input.LA(-3) == '\n' || _input.LA(-3) == '\r' }?
;

VERBATIM_HERE_STRING_START
Expand Down Expand Up @@ -577,7 +577,7 @@ VERBATIM_HERE_STRING_SECTION
;

VERBATIM_HERE_STRING_END
: SINGLE_QUOTE '@' { _input.LA(-3) == '\n' }?
: SINGLE_QUOTE '@' { _input.LA(-3) == '\n' || _input.LA(-3) == '\r' }?
-> popMode
;

Expand Down

0 comments on commit 86bed09

Please sign in to comment.