fix existing tags

new tags: for,cycle
This commit is contained in:
harttle
2016-06-17 08:39:23 +08:00
parent 8b9e9f759a
commit 0b7da2abf7
24 changed files with 432 additions and 195 deletions
+6 -1
View File
@@ -26,7 +26,12 @@ module.exports = function(Tag) {
var template;
if (token.type == 'tag') {
if (this.trigger(`tag:${token.name}`, token)) continue;
template = parseTag(token, this.tokens);
if (token.name === 'continue' || token.name === 'break'){
template = token;
}
else{
template = parseTag(token, this.tokens);
}
} else {
template = token;
}