Skip to content

Commit c1010e0

Browse files
fix: allow getter-setter combinations in property declarations (#234)
The property_declaration rule previously used choice(optional(getter), optional(setter)) which only allowed ONE accessor. Properties with both getter and setter had the second accessor spill out as a top-level declaration. Change to optional(choice(seq(getter, optional(setter)), seq(setter, optional(getter)))) to allow both accessors as children of the property node, matching JetBrains PSI structure.
1 parent 87f81d4 commit c1010e0

File tree

3 files changed

+641196
-557078
lines changed

3 files changed

+641196
-557078
lines changed

grammar.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change

src/grammar.json

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change

src/parser.c

Lines changed: 641153 additions & 557060 deletions
Original file line numberDiff line numberDiff line change

0 commit comments

Comments
 (0)