summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/handlebars.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlebars.l b/src/handlebars.l
index 04c7c4c..b32e39c 100644
--- a/src/handlebars.l
+++ b/src/handlebars.l
@@ -42,7 +42,7 @@
<mu>"@"[a-zA-Z]+ { yytext = yytext.substr(1); return 'DATA'; }
<mu>"true"/[}\s] { return 'BOOLEAN'; }
<mu>"false"/[}\s] { return 'BOOLEAN'; }
-<mu>[0-9]+/[}\s] { return 'INTEGER'; }
+<mu>\-?[0-9]+/[}\s] { return 'INTEGER'; }
<mu>[a-zA-Z0-9_$-]+/[=}\s\/.] { return 'ID'; }
<mu>'['[^\]]*']' { yytext = yytext.substr(1, yyleng-2); return 'ID'; }
<mu>. { return 'INVALID'; }