Skip to content

[demo request] Is there any demo for using query-syntax #Capturing Nodes? #221

@liaodalin19903

Description

@liaodalin19903

Hi,
I am read the document of tree-sitter:
query-syntax #Capturing Nodes

there use @ to capture the nodes:

 (assignment_expression
  left: (identifier) @the-function-name
  right: (function))

but I don't find a place of use the captured node name(in there @the-function-name) ,
is there any demo for using this function?

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