added the 'delete' operator

This commit is contained in:
Jeremy Ashkenas
2009-12-17 21:21:07 -05:00
parent 0dc445138b
commit 9976de76f5
4 changed files with 12 additions and 4 deletions

View File

@@ -8,7 +8,8 @@ class Lexer
"break", "continue",
"for", "in", "while",
"switch", "case",
"super"]
"super",
"delete"]
IDENTIFIER = /\A([a-zA-Z$_]\w*)/
NUMBER = /\A\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?(e[+\-]?[0-9]+)?))\b/i