Add support for the C++11 u and U encoding prefixes for char literals
"u" and "U" are new in C11 and C++11 for char literals.
This commit is contained in:
parent
df86ec5af6
commit
8c2cb4e604
2 changed files with 7 additions and 0 deletions
|
|
@ -938,6 +938,10 @@ static int look(Scanner *s) {
|
|||
retract(s, 1);
|
||||
state = 1000;
|
||||
}
|
||||
else if (c == '\'') { /* Definitely u, U or L char */
|
||||
retract(s, 1);
|
||||
state = 77;
|
||||
}
|
||||
else if (c == 'R') { /* Possibly CUSTOM DELIMITER u, U, L string */
|
||||
state = 73;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue