Warn on escape sequences

This commit is contained in:
Ilmir Usmanov
2014-10-05 20:09:50 +04:00
parent 3d5fd214f3
commit 17ee2eca50
2 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -776,7 +776,10 @@ parse_string (void)
/* Only single escape character is allowed. */
if (LA (1) == 'x' || LA (1) == 'u' || __isdigit (LA (1)))
{
PARSE_SORRY ("Escape sequences are not supported yet", token_start - buffer_start);
PARSE_WARN ("Escape sequences are ignored yet", token_start - buffer_start);
consume_char ();
consume_char ();
continue;
}
if ((LA (1) == '\'' && !is_double_quoted)
|| (LA (1) == '"' && is_double_quoted)