diff options
author | Mike Kucera | 2009-04-22 15:26:09 +0000 |
---|---|---|
committer | Mike Kucera | 2009-04-22 15:26:09 +0000 |
commit | 6262b1fe81c053963220e980a42a83edc02e7f3d (patch) | |
tree | e8febb8e675eed8ee44bf134efb7f4f360c96425 /lrparser/org.eclipse.cdt.core.lrparser | |
parent | 91657617cbb6a860aae6a1180144463fdd411c90 (diff) | |
download | org.eclipse.cdt-6262b1fe81c053963220e980a42a83edc02e7f3d.tar.gz org.eclipse.cdt-6262b1fe81c053963220e980a42a83edc02e7f3d.tar.xz org.eclipse.cdt-6262b1fe81c053963220e980a42a83edc02e7f3d.zip |
[273283] [XLC Parser] support _Complex and restrict keywords in C++
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser')
-rw-r--r-- | lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g index 752839327b4..d36a8bbfd06 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g +++ b/lrparser/org.eclipse.cdt.core.lrparser/grammar/cpp/CPPGrammar.g @@ -964,10 +964,14 @@ elaborated_specifier_hook -- ::= identifier_token +comma_opt + ::= ',' | $empty + + enum_specifier - ::= 'enum' enum_specifier_hook '{' <openscope-ast> enumerator_list_opt '}' + ::= 'enum' enum_specifier_hook '{' <openscope-ast> enumerator_list_opt comma_opt '}' /. $Build consumeTypeSpecifierEnumeration(false); $EndBuild ./ - | 'enum' enum_specifier_hook identifier_token '{' <openscope-ast> enumerator_list_opt '}' + | 'enum' enum_specifier_hook identifier_token '{' <openscope-ast> enumerator_list_opt comma_opt '}' /. $Build consumeTypeSpecifierEnumeration(true); $EndBuild ./ enum_specifier_hook |