Browse files

Fixed tag literal setting not being respected

  • Loading branch information...
1 parent b77eb70 commit 805f5441e7cf2b3bc84b07c05eed6cc1f198872a Peter van der Zee committed Jul 2, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 Tokenizer.js
View
18 Tokenizer.js
@@ -44,14 +44,14 @@ function Tokenizer(inp, options){
this.regexBig = Tokenizer.regexBig;
this.regexBigAlt = Tokenizer.regexBigAlt;
- // stuff for parsing tag literals
- this.regexTagName = Tokenizer.regexTagName;
- this.regexTagAttributes = Tokenizer.regexTagAttributes;
- this.regexTagUnarySuffix = Tokenizer.regexTagUnarySuffix;
- this.regexTagBinarySuffix = Tokenizer.regexTagBinarySuffix;
- this.regexTagBody = Tokenizer.regexTagBody;
- this.regexTagOpenOrClose = Tokenizer.regexTagOpenOrClose;
- this.regexTagClose = Tokenizer.regexTagClose;
+ // stuff for parsing tag literals
+ this.regexTagName = Tokenizer.regexTagName;
+ this.regexTagAttributes = Tokenizer.regexTagAttributes;
+ this.regexTagUnarySuffix = Tokenizer.regexTagUnarySuffix;
+ this.regexTagBinarySuffix = Tokenizer.regexTagBinarySuffix;
+ this.regexTagBody = Tokenizer.regexTagBody;
+ this.regexTagOpenOrClose = Tokenizer.regexTagOpenOrClose;
+ this.regexTagClose = Tokenizer.regexTagClose;
this.regexRemoveEscape = Tokenizer.regexRemoveEscape;
this.tokenCount = 0;
@@ -426,7 +426,7 @@ Tokenizer.prototype = {
}
}
returnValue.twinfo = twinfo;
- } else if (regex && part[9]) { // this.tagLiterals
+ } else if (regex && part[9] && this.tagLiterals) {
// allows you to use this literally (in places where an expression is allowed) in js:
// simple tag:

0 comments on commit 805f544

Please sign in to comment.