}*/
static inline char tokenizer_is_namespace(const char*id)
{
- return trie_contains(active_namespaces, id);
+ return trie_contains(active_namespaces, (const unsigned char*)id);
}
static inline int handleIdentifier()
%x XMLTEXT
%x XML
-NAME [a-zA-Z_][a-zA-Z0-9_\\]*
-_ [^a-zA-Z0-9_\\]
+NAME [a-zA-Z_\x80-\xff][a-zA-Z0-9_\\\x80-\xff]*
+_ [^a-zA-Z0-9_\\\x80-\xff]
HEXINT 0x[a-zA-Z0-9]+
HEXFLOAT 0x[a-zA-Z0-9]*\.[a-zA-Z0-9]*
XMLSTRING ["][^"]*["]
STRING ["](\\[\x00-\xff]|[^\\"\n])*["]|['](\\[\x00-\xff]|[^\\'\n])*[']
-S [ \n\r\t\xa0]
+S ([ \n\r\t\xa0]|\xc2\xa0)
MULTILINE_COMMENT [/][*]+([*][^/]|[^/*]|[^*][/]|[\x00-\x1f])*[*]+[/]
SINGLELINE_COMMENT \/\/[^\n\r]*[\n\r]
REGEXP [/]([^/\n]|\\[/])*[/][a-zA-Z]*
if(c1>='0' && c1<='9')
syntaxerror("syntax error: %s (identifiers must not start with a digit)");
else
- syntaxerror("syntax error [%d]: %s", (yy_start-1)/2, buf);
+ syntaxerror("syntax error [state=%d]: %s", (yy_start-1)/2, buf);
printf("\n");
exit(1);
yyterminate();