Don't forget to BEGIN(INITIAL) when terminating a string
This commit is contained in:
parent
aaf47bf934
commit
49e4e853be
@ -109,7 +109,10 @@ sizeof return TOK_SIZEOF;
|
|||||||
BEGIN(str);
|
BEGIN(str);
|
||||||
}
|
}
|
||||||
<str>{
|
<str>{
|
||||||
\" return TOK_STR_CONST;
|
\" {
|
||||||
|
BEGIN(INITIAL);
|
||||||
|
return TOK_STR_CONST;
|
||||||
|
}
|
||||||
\\x[0-9A-Fa-f]{2} {
|
\\x[0-9A-Fa-f]{2} {
|
||||||
/* hexadecimal escape code */
|
/* hexadecimal escape code */
|
||||||
unsigned int val;
|
unsigned int val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user