diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-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 = {}; |