Skip to content

Attribute end position incorrect when for attribute lists #5

@ChristianMurphy

Description

@ChristianMurphy

ast-issue

The early nodes over all following nodes.
Likely due to the recursive nature of the parsing:

a_list
= _ ida:ID eq:(_ '=' _ idb:ID {return idb})? _ ','? rest:a_list? {
return [{
type: 'attribute',
name: ida,
value: eq || undefined,
data: {},
position: location()
}].concat(rest || []);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions