Update styles

master
Sanjar Ahmadov 4 years ago
parent 75f4646161
commit 776e6001fd

@ -180,6 +180,8 @@ if True:
}
}
}
<AFTER> {
/* Delimiters. */
@ -254,14 +256,18 @@ if True:
/*Identifiers*/
{Identifiers} { return symbol(ChocoPyTokens.ID, yytext()); }
/* Whitespace. */
{WhiteSpace} { /* ignore */ }
/* Comment. */
{Comments} { /* ignore */ }
}
<STR>{
{StringLiteral} { currString += yytext(); }
\\$ { /*'\' at the end of line, do nothing.*/ }
"\"" { yybegin(AFTER); return symbolFactory.newSymbol(ChocoPyTokens.terminalNames[ChocoPyTokens.STRING], ChocoPyTokens.STRING,
new ComplexSymbolFactory.Location(str_l, str_c),
new ComplexSymbolFactory.Location(yyline + 1,yycolumn + yylength()),

Loading…
Cancel
Save