Only treat "class" as a token if the current language is C++.
This commit is contained in:
parent
d42563daf7
commit
866ecded64
1 changed files with 2 additions and 1 deletions
|
@ -1369,7 +1369,8 @@ yylex ()
|
|||
return SIZEOF;
|
||||
break;
|
||||
case 5:
|
||||
if (!strncmp (tokstart, "class", 5))
|
||||
if (current_language->la_language == language_cplus
|
||||
&& !strncmp (tokstart, "class", 5))
|
||||
return CLASS;
|
||||
if (!strncmp (tokstart, "union", 5))
|
||||
return UNION;
|
||||
|
|
Loading…
Reference in a new issue