diff options
author | Yehuda Katz <wycats@gmail.com> | 2011-12-31 15:41:16 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2011-12-31 15:41:16 -0800 |
commit | 17cdb0091b67280f63621b7451ee92a10ad75d6a (patch) | |
tree | 01a15126d1dc8c0c2a62f9dca4c4b2dbefcb9e07 | |
parent | 730c2617afa8da48ced07d8fba83152b3fae54d5 (diff) | |
download | handlebars.js-17cdb0091b67280f63621b7451ee92a10ad75d6a.zip handlebars.js-17cdb0091b67280f63621b7451ee92a10ad75d6a.tar.gz handlebars.js-17cdb0091b67280f63621b7451ee92a10ad75d6a.tar.bz2 |
Missing some reserved words
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index b322063..f60b8f1 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -740,9 +740,23 @@ Handlebars.JavaScriptCompiler = function() {}; } }; - var reservedWords = ("break case catch continue default delete do else finally " + - "for function if in instanceof new return switch this throw " + - "try typeof var void while with null true false").split(" "); + var reservedWords = ( + "break else new var" + + "case finally return void" + + "catch for switch while" + + "continue function this with" + + "default if throw" + + "delete in try" + + "do instanceof typeof" + + "abstract enum int short" + + "boolean export interface static" + + "byte extends long super" + + "char final native synchronized" + + "class float package throws" + + "const goto private transient" + + "debugger implements protected volatile" + + "double import public let yield" + ).split(" "); var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {}; |