diff --git a/pmd-cpp/etc/grammar/cpp.jj b/pmd-cpp/etc/grammar/cpp.jj index 2af09bd98b..3f65d72a8e 100644 --- a/pmd-cpp/etc/grammar/cpp.jj +++ b/pmd-cpp/etc/grammar/cpp.jj @@ -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*/