summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/lexer.l2
-rw-r--r--rfcomm/lexer.l2
2 files changed, 4 insertions, 0 deletions
diff --git a/hcid/lexer.l b/hcid/lexer.l
index f4559494..7d9d6ada 100644
--- a/hcid/lexer.l
+++ b/hcid/lexer.l
@@ -51,6 +51,8 @@ int yyerror(char *str);
%}
+%option nounput
+
hex 0x[0-9a-zA-Z]+
num [0-9]+
kword [A-Za-z0-9\_\-]+
diff --git a/rfcomm/lexer.l b/rfcomm/lexer.l
index 70e1be81..9988243f 100644
--- a/rfcomm/lexer.l
+++ b/rfcomm/lexer.l
@@ -44,6 +44,8 @@ int yyerror(char *str);
%}
+%option nounput
+
space [ \t]
linebreak \n
comment \#.*\n