Fixes Issue #574 ... number keys in implicit object literals.

This commit is contained in:
Jeremy Ashkenas
2010-08-11 21:49:18 -04:00
parent 2ec857ef8d
commit d704afa0e9
3 changed files with 4 additions and 3 deletions

View File

@@ -531,7 +531,7 @@ MULTILINER = /\n/g
STRING_NEWLINES = /\n[ \t]*/g
NO_NEWLINE = /^([+\*&|\/\-%=<>!.\\][<>=&|]*|and|or|is|isnt|not|delete|typeof|instanceof)$/
HEREDOC_INDENT = /(\n+([ \t]*)|^([ \t]+))/g
ASSIGNED = /^\s*(([a-zA-Z\$_@]\w*|["'][^\r\n]+?["'])[ \t]*?[:=][^=])/
ASSIGNED = /^\s*(([a-zA-Z\$_@]\w*|["'][^\r\n]+?["']|\d+)[ \t]*?[:=][^=])/
NEXT_CHARACTER = /^\s*(\S)/
# Tokens which a regular expression will never immediately follow, but which