X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_scan.re;h=78977a157aa518971fda23833b1fe825f3d03833;hp=437b33fde3ced9f56111f33defba0f459ec51cd8;hb=4bf8ff5e477da2fa4f82518bb947055c2c0374d6;hpb=ef4e043826e92afd32000b7d945cdf86a6e9a223 diff --git a/src/parser_scan.re b/src/parser_scan.re index 437b33f..78977a1 100644 --- a/src/parser_scan.re +++ b/src/parser_scan.re @@ -66,9 +66,8 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input struct psi_plist *tokens; struct psi_token *token; const char *tok, *cur, *lim, *mrk, *eol, *ctxmrk; - unsigned parens, lines = 1; + unsigned char_width, parens, lines = 1; bool escaped; - token_t char_width; PSI_DEBUG_PRINT(P, "PSI: scanning %s\n", I->file->val); @@ -173,7 +172,6 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input "..." { NEWTOKEN(PSI_T_ELLIPSIS); goto start; } "?" { NEWTOKEN(PSI_T_IIF); goto start; } "pragma" { NEWTOKEN(PSI_T_PRAGMA); goto start; } - "pragma" W+ "once" { NEWTOKEN(PSI_T_PRAGMA_ONCE); goto start; } "__"? "inline" { NEWTOKEN(PSI_T_CPP_INLINE); goto start; } "__restrict" { NEWTOKEN(PSI_T_CPP_RESTRICT); goto start; } "__extension__" { NEWTOKEN(PSI_T_CPP_EXTENSION); goto start; } @@ -220,7 +218,6 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input 'CALLBACK' { NEWTOKEN(PSI_T_CALLBACK); goto start; } 'STATIC' { NEWTOKEN(PSI_T_STATIC); goto start; } 'FUNCTION' { NEWTOKEN(PSI_T_FUNCTION); goto start; } - 'LIB' { NEWTOKEN(PSI_T_LIB); goto start; } 'LET' { NEWTOKEN(PSI_T_LET); goto start; } 'SET' { NEWTOKEN(PSI_T_SET); goto start; } 'PRE_ASSERT' { NEWTOKEN(PSI_T_PRE_ASSERT); goto start; }