diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/handlebars.l | 2 | ||||
-rw-r--r-- | src/handlebars.yy | 4 | ||||
-rw-r--r-- | src/parser-prefix.js | 1 | ||||
-rw-r--r-- | src/parser-suffix.js | 1 |
4 files changed, 5 insertions, 3 deletions
diff --git a/src/handlebars.l b/src/handlebars.l index 4205470..913121c 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -66,7 +66,7 @@ ID [^\s!"#%-,\.\/;->@\[-\^`\{-~]+/{LOOKAHEAD} <mu>".." return 'ID'; <mu>"."/{LOOKAHEAD} return 'ID'; <mu>[\/.] return 'SEP'; -<mu>\s+ /*ignore whitespace*/ +<mu>\s+ // ignore whitespace <mu>"}"{RIGHT_STRIP}?"}}" this.popState(); return 'CLOSE_UNESCAPED'; <mu>{RIGHT_STRIP}?"}}" this.popState(); return 'CLOSE'; <mu>'"'("\\"["]|[^"])*'"' yytext = strip(1,2).replace(/\\"/g,'"'); return 'STRING'; diff --git a/src/handlebars.yy b/src/handlebars.yy index 71a8575..93797f5 100644 --- a/src/handlebars.yy +++ b/src/handlebars.yy @@ -6,8 +6,8 @@ function stripFlags(open, close) { return { - left: open[2] === '~', - right: close[0] === '~' || close[1] === '~' + left: open.charAt(2) === '~', + right: close.charAt(0) === '~' || close.charAt(1) === '~' }; } diff --git a/src/parser-prefix.js b/src/parser-prefix.js new file mode 100644 index 0000000..685b6ec --- /dev/null +++ b/src/parser-prefix.js @@ -0,0 +1 @@ +/* jshint ignore:start */ diff --git a/src/parser-suffix.js b/src/parser-suffix.js index 6e4aa20..67e3348 100644 --- a/src/parser-suffix.js +++ b/src/parser-suffix.js @@ -1 +1,2 @@ export default handlebars; +/* jshint ignore:end */ |