mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +08:00
Only treat "class" as a token if the current language is C++.
This commit is contained in:
@ -1369,7 +1369,8 @@ yylex ()
|
|||||||
return SIZEOF;
|
return SIZEOF;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
if (!strncmp (tokstart, "class", 5))
|
if (current_language->la_language == language_cplus
|
||||||
|
&& !strncmp (tokstart, "class", 5))
|
||||||
return CLASS;
|
return CLASS;
|
||||||
if (!strncmp (tokstart, "union", 5))
|
if (!strncmp (tokstart, "union", 5))
|
||||||
return UNION;
|
return UNION;
|
||||||
|
Reference in New Issue
Block a user