Skip to content

Tiny fix in tags.scm #386

Description

@Hibou57

(edited since posted) At line 82 of tags.scm , in my personal copy I changed this

(call_expression
  function: (member_expression
    property: (property_identifier) @name)
  arguments: (_) @reference.call)

Into this:

(call_expression
  function: (member_expression
    property: (property_identifier) @reference.call @name)
  arguments: (_))

In captures, was getting reference.call before name which ended into issues and seeing this pattern was the cause, I ended to wonder why reference.call designated the arguments node.

An alternative is also this, but less distinctive:

(call_expression
  function: (member_expression
    property: (property_identifier) @name) @reference.call
  arguments: (_))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions