~sircmpwn/annotatec

8357cab6e7225e065046e90171191d0789071fe3 — Drew DeVault 7 months ago e0bd193
Add more GNU extensions to the lexer
1 files changed, 3 insertions(+), 0 deletions(-)

M lang.l
M lang.l => lang.l +3 -0
@@ 97,9 97,12 @@ void lexreset(const char *fn, FILE *input) {
"__builtin_va_list" { _lineno(); return CZ_BUILTIN_VA_LIST; }

"__restrict"		{ _lineno(); return CZ_RESTRICT; } /* GNU extensions */
"__inline"			{ _lineno(); return CZ_INLINE; }
"__alignof__"		{ _lineno(); return CZ_ALIGNOF; }
"__attribute__"		{ _lineno(); return CZ_GNU_ATTRIBUTE; }
"__extension__"		{ _lineno(); }
"__signed__"		{ _lineno(); return CZ_SIGNED; }
"__volatile__"		{ _lineno(); return CZ_VOLATILE; }
"asm"				{ _lineno(); return CZ_GNU_ASM; }
"__asm__"			{ _lineno(); return CZ_GNU_ASM; }
"_Float128"			{ _lineno(); return CZ_FLOAT; }