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 {
k = 2;
}
// TODO
STRING
options {
paraphrase = "a string";
}
: '"'! (~'"')* '"'!
| '\''! (~'\'')* '\''!
: '"'! (~('"' | '\n' | '\r'))* '"'!
| '\''! (~('\'' | '\n' | '\r'))* '\''!
;
SIGNED_INT
......@@ -1336,15 +1338,14 @@ options {
WS
: ( ' '
| '\t'
| '\f'
| ( "\r\n"
| '\r'
| '\n'
)
{ newline(); }
)
{ $setType(antlr::Token::SKIP); }
| '\t'
| '\f'
|
( "\r\n"
| '\r'
| '\n'
) { newline(); }
) { $setType(antlr::Token::SKIP); }
;
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