diff options
Diffstat (limited to 'src/GF/JavaScript/ParJS.y')
| -rw-r--r-- | src/GF/JavaScript/ParJS.y | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/GF/JavaScript/ParJS.y b/src/GF/JavaScript/ParJS.y index bbbb959e5..bf0614757 100644 --- a/src/GF/JavaScript/ParJS.y +++ b/src/GF/JavaScript/ParJS.y @@ -188,7 +188,7 @@ Expr12 : Expr13 { $1 } Property :: { Property } -Property : Ident ':' Expr { Prop $1 $3 } +Property : PropertyName ':' Expr { Prop $1 $3 } ListProperty :: { [Property] } @@ -197,6 +197,11 @@ ListProperty : {- empty -} { [] } | Property ',' ListProperty { (:) $1 $3 } +PropertyName :: { PropertyName } +PropertyName : Ident { IdentPropName $1 } + | String { StringPropName $1 } + + { |
