case STATE_ID:
if(identifier_chr(c)) {
token_append_char(tok, c);
+ } else if(c == '\'' && token_cmp(tok, "L") == 0) {
+ /* token is a wide character literal */
+ token_append_char(tok, c);
+ tok->type = TOKEN_CHAR_LITERAL;
+ state = STATE_CHR;
+ } else if(c == '"' && token_cmp(tok, "L") == 0) {
+ /* token is a wide string literal */
+ token_append_char(tok, c);
+ tok->type = TOKEN_STRING;
+ state = STATE_STRING;
} else {
_putnextchar(c);
_identify_token(tok);