summaryrefslogtreecommitdiff
path: root/trafgen_lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_lexer.l')
-rw-r--r--trafgen_lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen_lexer.l b/trafgen_lexer.l
index 72bd56c..be6917f 100644
--- a/trafgen_lexer.l
+++ b/trafgen_lexer.l
@@ -72,7 +72,7 @@ static char *try_convert_shellcode(char *sstr)
number_oct ([0][0-9]+)
number_hex ([0][x][a-fA-F0-9]+)
number_bin ([0][b][0-1]+)
-number_dec (([0])|([-+]?[1-9][0-9]*))
+number_dec (([0])|([1-9][0-9]*))
number_ascii ([a-zA-Z])
%%
@@ -120,7 +120,7 @@ number_ascii ([a-zA-Z])
"\""[^\"]+"\"" { yylval.str = try_convert_shellcode(xstrdup(yytext));
return string; }
-([ \t\r\n]+)? { return K_WHITE; }
+([ \t\n]+)? { return K_WHITE; }
"/*"([^\*]|\*[^/])*"*/" { return K_COMMENT; }