filename = strdup(&text[i1]);
}
- char*fullfilename = find_file(filename);
+ char*fullfilename = find_file(filename, 1);
enter_file2(filename, fullfilename, YY_CURRENT_BUFFER);
yyin = fopen(fullfilename, "rb");
if (!yyin) {
}
break;
}
- default:
- syntaxerror("unknown escape sequence: \"\\%c\"", *s);
+ default: {
+ if(o) {
+ o[len+0] = '\\';
+ o[len+1] = *s;
+ }
+ s++;
+ len+=2;
+ break;
+ }
}
}
if(o) o[len]=0;
{
trie_put(&namespaces, id);
}
+void tokenizer_unregister_namespace(const char*id)
+{
+ trie_remove(namespaces, id);
+}
static inline tokenizer_is_namespace(const char*id)
{
return trie_lookup(namespaces, id);
\.\. {c();BEGIN(REGEXPOK);return m(T_DOTDOT);}
\. {c();BEGIN(REGEXPOK);return m('.');}
:: {c();BEGIN(REGEXPOK);return m(T_COLONCOLON);}
-: {c();BEGIN(INITIAL);return m(':');}
+: {c();BEGIN(REGEXPOK);return m(':');}
instanceof {c();BEGIN(REGEXPOK);return m(KW_INSTANCEOF);}
implements {c();BEGIN(REGEXPOK);return m(KW_IMPLEMENTS);}
interface {c();BEGIN(INITIAL);return m(KW_INTERFACE);}