diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-05 11:07:50 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-05 11:07:50 -0500 |
commit | 2c554363ca25ff42fa6d9df7cd7093dd3d4b7f46 (patch) | |
tree | f959d6da47103afda00b48ef3e272354289c8d2b /lib/Text | |
parent | a51757076642700537944f970c9274ceb65cf77d (diff) | |
download | text-handlebars-2c554363ca25ff42fa6d9df7cd7093dd3d4b7f46.tar.gz text-handlebars-2c554363ca25ff42fa6d9df7cd7093dd3d4b7f46.zip |
allow - in identifiers
Diffstat (limited to 'lib/Text')
-rw-r--r-- | lib/Text/Xslate/Syntax/Handlebars.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Text/Xslate/Syntax/Handlebars.pm b/lib/Text/Xslate/Syntax/Handlebars.pm index 4b88f4f..ba41940 100644 --- a/lib/Text/Xslate/Syntax/Handlebars.pm +++ b/lib/Text/Xslate/Syntax/Handlebars.pm @@ -19,7 +19,7 @@ my $OPERATOR_TOKEN = sprintf( join('|', map{ quotemeta } qw(..)) ); -sub _build_identity_pattern { qr/[A-Za-z_][A-Za-z0-9_?]*/ } +sub _build_identity_pattern { qr/[A-Za-z_][A-Za-z0-9_?-]*/ } sub _build_comment_pattern { qr/\![^;]*/ } sub _build_line_start { undef } |