mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
asm was not a keyword in C. :-(
This commit is contained in:
parent
cfaf47a5f7
commit
cac97aa220
1 changed files with 3 additions and 3 deletions
|
@ -4297,9 +4297,10 @@ abstract class BaseScanner implements IScanner {
|
||||||
words.put(Keywords.cVOID, IToken.t_void); //$NON-NLS-1$
|
words.put(Keywords.cVOID, IToken.t_void); //$NON-NLS-1$
|
||||||
words.put(Keywords.cVOLATILE, IToken.t_volatile); //$NON-NLS-1$
|
words.put(Keywords.cVOLATILE, IToken.t_volatile); //$NON-NLS-1$
|
||||||
words.put(Keywords.cWHILE, IToken.t_while); //$NON-NLS-1$
|
words.put(Keywords.cWHILE, IToken.t_while); //$NON-NLS-1$
|
||||||
|
words.put(Keywords.cASM, IToken.t_asm); //$NON-NLS-1$
|
||||||
|
|
||||||
// ANSI C keywords
|
// ANSI C keywords
|
||||||
ckeywords = (CharArrayIntMap) words.clone();
|
ckeywords = (CharArrayIntMap) words.clone();
|
||||||
ckeywords.put(Keywords.cRESTRICT, IToken.t_restrict); //$NON-NLS-1$
|
ckeywords.put(Keywords.cRESTRICT, IToken.t_restrict); //$NON-NLS-1$
|
||||||
ckeywords.put(Keywords.c_BOOL, IToken.t__Bool); //$NON-NLS-1$
|
ckeywords.put(Keywords.c_BOOL, IToken.t__Bool); //$NON-NLS-1$
|
||||||
ckeywords.put(Keywords.c_COMPLEX, IToken.t__Complex); //$NON-NLS-1$
|
ckeywords.put(Keywords.c_COMPLEX, IToken.t__Complex); //$NON-NLS-1$
|
||||||
|
@ -4307,7 +4308,6 @@ abstract class BaseScanner implements IScanner {
|
||||||
|
|
||||||
// C++ Keywords
|
// C++ Keywords
|
||||||
cppkeywords = words;
|
cppkeywords = words;
|
||||||
cppkeywords.put(Keywords.cASM, IToken.t_asm); //$NON-NLS-1$
|
|
||||||
cppkeywords.put(Keywords.cBOOL, IToken.t_bool); //$NON-NLS-1$
|
cppkeywords.put(Keywords.cBOOL, IToken.t_bool); //$NON-NLS-1$
|
||||||
cppkeywords.put(Keywords.cCATCH, IToken.t_catch); //$NON-NLS-1$
|
cppkeywords.put(Keywords.cCATCH, IToken.t_catch); //$NON-NLS-1$
|
||||||
cppkeywords.put(Keywords.cCLASS, IToken.t_class); //$NON-NLS-1$
|
cppkeywords.put(Keywords.cCLASS, IToken.t_class); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue