diff options
author | James Gorrie <james@bravenewtalent.com> | 2013-05-17 16:58:34 +0100 |
---|---|---|
committer | James Gorrie <james@bravenewtalent.com> | 2013-05-17 16:58:34 +0100 |
commit | f5fe6d0bf6d31a2f9eaa1607c56e9ddd63044437 (patch) | |
tree | 8ee15ec707e701c0b5eb6bc3177211c349e9bfe2 /src | |
parent | 94cc41900b32e03e51829e1be8aba5669b58a968 (diff) | |
download | handlebars.js-f5fe6d0bf6d31a2f9eaa1607c56e9ddd63044437.zip handlebars.js-f5fe6d0bf6d31a2f9eaa1607c56e9ddd63044437.tar.gz handlebars.js-f5fe6d0bf6d31a2f9eaa1607c56e9ddd63044437.tar.bz2 |
Allowed for points to be in partial path name
Diffstat (limited to 'src')
-rw-r--r-- | src/handlebars.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handlebars.l b/src/handlebars.l index 8a17a4e..d12ab28 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -44,11 +44,11 @@ <mu>"true"/[}\s] { return 'BOOLEAN'; } <mu>"false"/[}\s] { return 'BOOLEAN'; } <mu>\-?[0-9]+/[}\s] { return 'INTEGER'; } -<mu>[a-zA-Z0-9_$:\-]+/[=}\s\/.] { return 'ID'; } +<mu>[a-zA-Z0-9_$:\-]+/[=}\s\/.] { return 'ID'; } <mu>'['[^\]]*']' { yytext = yytext.substr(1, yyleng-2); return 'ID'; } <mu>. { return 'INVALID'; } <par>\s+ { /*ignore whitespace*/ } -<par>[a-zA-Z0-9_$\-\/]+ { this.popState(); return 'PARTIAL_NAME'; } +<par>[a-zA-Z0-9_$\-\/\.]+ { this.popState(); return 'PARTIAL_NAME'; } <INITIAL,mu><<EOF>> { return 'EOF'; } |