Skip to content

Commit

Permalink
Fix for JS literal getter/setter.
Browse files Browse the repository at this point in the history
Reviewed by @tolmasky.
  • Loading branch information
tolmasky committed Dec 30, 2012
1 parent 7375da9 commit 09c3781
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions languages/Objective-J/Objective-J.language
Expand Up @@ -599,10 +599,10 @@ PropertyAssignment =
PropertySetter

PropertyGetter =
"get" _ PropertyName _ "(" _ ")" _ "{" _ FunctionBody _ "}"
GET _ PropertyName _ "(" _ ")" _ "{" _ FunctionBody _ "}"

PropertySetter =
"set" _ PropertyName _ "(" _ PropertySetParameterList _ ")" _ "{" _ FunctionBody _ "}"
SET _ PropertyName _ "(" _ PropertySetParameterList _ ")" _ "{" _ FunctionBody _ "}"

PropertyName =
IdentifierName /
Expand Down Expand Up @@ -1002,4 +1002,9 @@ FINALLY =
TRY =
"try" !(IdentifierPart)
WITH =
"with" !(IdentifierPart)
"with" !(IdentifierPart)
GET =
"get" !(IdentifierPart)

SET =
"set" !(IdentifierPart)
2 changes: 1 addition & 1 deletion languages/Objective-J/lib/Parser.js

Large diffs are not rendered by default.

0 comments on commit 09c3781

Please sign in to comment.