Skip to content

Commit

Permalink
parser: add object_access as assignment target
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbz64 committed Mar 7, 2024
1 parent 9f9deda commit bb23a2b
Show file tree
Hide file tree
Showing 4 changed files with 72,645 additions and 72,590 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ module.exports = grammar({
/// Variables
assignment: ($) =>
seq(
prec.left(choice($.identifier, $.qualified_name)),
prec.left(choice($.identifier, $.qualified_name, $.object_access)),
"=",
prec.right($._expression)
),
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,10 @@
{
"type": "SYMBOL",
"name": "qualified_name"
},
{
"type": "SYMBOL",
"name": "object_access"
}
]
}
Expand Down
Loading

0 comments on commit bb23a2b

Please sign in to comment.