cpp: add missing "finally" token, move ID Token to beginning of file

This commit is contained in:
Andreas Dangel
2017-06-17 12:27:47 +02:00
parent afbb3eb600
commit 2c861a2f6c

View File

@ -288,6 +288,7 @@ TOKEN :
| < FALSETOK: "false" >
| < THROW: "throw" >
| < AT: "@" >
| < FINALLY: "finally" >
}
TOKEN [IGNORE_CASE] :
@ -325,6 +326,12 @@ TOKEN :
| < RSTRING : "R\"(" ( ~[")"] | ( ")" ~["\""] ) )* ")\"" >
}
TOKEN :
{
< ID : ["$", "a"-"z","A"-"Z", "_"] (["a"-"z","A"-"Z","0"-"9","_","$"])* >
}
void translation_unit() :
{}
{
@ -1561,10 +1568,4 @@ void exception_list() :
type_name() ( "," type_name())*
}
TOKEN :
{
< ID : ["$", "a"-"z","A"-"Z", "_"] (["a"-"z","A"-"Z","0"-"9","_","$"])* >
}
/*end*/