diff --git a/src/handlebars.l b/src/handlebars.l index cbf048d5..e7000b33 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -32,7 +32,7 @@ "{{" { return 'OPEN'; } "=" { return 'EQUALS'; } -"."/[} ] { return 'ID'; } +"."/[}/ ] { return 'ID'; } ".." { return 'ID'; } [\/.] { return 'SEP'; } \s+ { /*ignore whitespace*/ } @@ -44,7 +44,7 @@ "true"/[}\s] { return 'BOOLEAN'; } "false"/[}\s] { return 'BOOLEAN'; } \-?[0-9]+/[}\s] { return 'INTEGER'; } -[a-zA-Z0-9_$-]+/[=}\s\/.] { return 'ID'; } +[a-zA-Z0-9_$:-]+/[=}\s\/.] { return 'ID'; } '['[^\]]*']' { yytext = yytext.substr(1, yyleng-2); return 'ID'; } . { return 'INVALID'; } \s+ { /*ignore whitespace*/ }