Skip to content

Incorrect string parsing in Go #180

Description

@aresler

Steps to reproduce:

str1 := "hello world"
  1. Parse the sample above
  2. Check the nodes

Expected:

(source_file (short_var_declaration left: (expression_list (identifier)) right: (expression_list (interpreted_string_literal (interpreted_string_literal_content)))))

Actual:

(source_file (short_var_declaration left: (expression_list (identifier)) right: (expression_list (interpreted_string_literal))))

As you can see, the interpreted_string_literal_content node is missing.

github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions