Skip to content

Commit 38d2174

Browse files
committed
use flex rule nodefault
1 parent 5d71de9 commit 38d2174

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ indent_size = 4
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
9-
insert_final_newline = false
9+
insert_final_newline = true
1010

1111
[{meson.build,meson_options.txt}]
1212
indent_size = 2

src/frontend/interpreter.l

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* Copyright © 2021 Intel Corporation */
33

44
%option noyywrap
5+
%option nodefault
56

67
%{
78
%}
@@ -11,7 +12,6 @@
1112
, { std::cout << "comma" << std::endl;}
1213
[0-9]+ { std::cout << "number: " << yytext << std::endl; }
1314
[a-zA-Z0-9_.+-]+ { std::cout << "string: " << yytext << std::endl; }
14-
. { }
1515

1616
%%
1717

@@ -22,4 +22,4 @@ int main() {
2222
;
2323
}
2424
return 0;
25-
}
25+
}

0 commit comments

Comments
 (0)