Comparing version 0.0.15 to 0.0.16
{ | ||
"name": "yog-swig", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "custom swig template, add some tag or filter ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -58,2 +58,10 @@ /** | ||
parser.on(types.OPERATOR, function(token) { | ||
var val = token.match; | ||
if (val === '-' && key) { | ||
key += val; | ||
} | ||
}); | ||
parser.on(types.VAR, function(token) { | ||
@@ -60,0 +68,0 @@ key += token.match; |
@@ -55,2 +55,10 @@ exports.compile = function(compiler, args, content, parents, options, blockName) { | ||
parser.on(types.OPERATOR, function(token) { | ||
var val = token.match; | ||
if (val === '-' && key) { | ||
key += val; | ||
} | ||
}); | ||
parser.on(types.VAR, function(token) { | ||
@@ -57,0 +65,0 @@ key += token.match; |
21481
559