Skip to content

Commit

Permalink
save method member suffix '()'
Browse files Browse the repository at this point in the history
  • Loading branch information
mildabre committed Nov 23, 2024
1 parent d927bcf commit 6b10513
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Neon/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ private function parseEntity(Node $node): Node
$this->injectPos($valueNode, $this->stream->getIndex() - 1);
if ($this->stream->is('(')) {
$attributes = $this->parseBraces();
$valueNode->setMemberFlag();
$entities[] = $this->injectPos(new Node\EntityNode($valueNode, $attributes->items), $valueNode->startTokenPos, $attributes->endTokenPos);
} else {
$entities[] = $this->injectPos(new Node\EntityNode($valueNode), $valueNode->startTokenPos);
Expand Down

0 comments on commit 6b10513

Please sign in to comment.