Skip to content
Snippets Groups Projects
Commit f6b8b24b authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Fix lexer rules: WS and STRING

parent 589705f5
Branches
No related merge requests found
...@@ -1190,12 +1190,14 @@ options { ...@@ -1190,12 +1190,14 @@ options {
k = 2; k = 2;
} }
// TODO
STRING STRING
options { options {
paraphrase = "a string"; paraphrase = "a string";
} }
: '"'! (~'"')* '"'! : '"'! (~('"' | '\n' | '\r'))* '"'!
| '\''! (~'\'')* '\''! | '\''! (~('\'' | '\n' | '\r'))* '\''!
; ;
SIGNED_INT SIGNED_INT
...@@ -1336,15 +1338,14 @@ options { ...@@ -1336,15 +1338,14 @@ options {
WS WS
: ( ' ' : ( ' '
| '\t' | '\t'
| '\f' | '\f'
| ( "\r\n" |
| '\r' ( "\r\n"
| '\n' | '\r'
) | '\n'
{ newline(); } ) { newline(); }
) ) { $setType(antlr::Token::SKIP); }
{ $setType(antlr::Token::SKIP); }
; ;
COMMENT COMMENT
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment