Skip to content

Commit

Permalink
Se arregló un bug relacionado con la diferencia en el EOL entre Windo…
Browse files Browse the repository at this point in the history
…ws / Linux
  • Loading branch information
pablodearmas committed Mar 17, 2020
1 parent 6e08c09 commit a618a37
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 187 deletions.
4 changes: 2 additions & 2 deletions grammar/COOL_LEX.g4
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ STRING_CONTENT
;
STRING_FIRSTLINE
: '"' STRING_CONTENT* '\\\r\n' -> pushMode(MULTILINE_STR)
: '"' STRING_CONTENT* ('\\\r\n' | '\\\n') -> pushMode(MULTILINE_STR)
;
INT
Expand Down Expand Up @@ -297,7 +297,7 @@ CLOSE_COMMENT
mode MULTILINE_STR;
STRING_INNERLINE
: STRING_CONTENT* '\\\r\n'
: STRING_CONTENT* ('\\\r\n' | '\\\n')
;
STRING_LASTLINE
Expand Down
Loading

0 comments on commit a618a37

Please sign in to comment.