diff options
Diffstat (limited to 'libcuda/cuobjdump.l')
| -rw-r--r-- | libcuda/cuobjdump.l | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcuda/cuobjdump.l b/libcuda/cuobjdump.l index e782c17..d264338 100644 --- a/libcuda/cuobjdump.l +++ b/libcuda/cuobjdump.l @@ -107,13 +107,14 @@ newlines {newline}+ <header>"has debug info"{newline} /* Looking for the identifier (filename) then the header is done */ -<endheader>[[:alnum:]_\.]+ yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME; + /* <endheader>[[:alnum:]_\./]+ yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME; */ +<endheader>{notnewline}+ yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME; {newline} return NEWLINE; /*Reached end of file*/ -<<EOF>> return 0; +<<EOF>> BEGIN(INITIAL);return 0; /*No other rule matched. Throw an error*/ . cuobjdump_error("Invalid token"); |
