diff options
Diffstat (limited to 'src/lexer.in.cc')
-rw-r--r-- | src/lexer.in.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lexer.in.cc b/src/lexer.in.cc index c5d73e1..4d6d132 100644 --- a/src/lexer.in.cc +++ b/src/lexer.in.cc @@ -106,8 +106,8 @@ Lexer::Token Lexer::ReadToken() { re2c:yyfill:enable = 0; nul = "\000"; - simple_varname = [a-zA-Z0-9_]+; - varname = [a-zA-Z0-9_.]+; + simple_varname = [a-zA-Z0-9_-]+; + varname = [a-zA-Z0-9_.-]+; "#"[^\000\n]*"\n" { continue; } [\n] { token = NEWLINE; break; } |