Skip to content

Pointer-to-member-function is not parsed correctly. #102

Closed

Description

@hokein

testcase:

void (Class::*member_function_ptr)(int);

tree-sitter output:

  declaration [0, 0] - [0, 40])
    type: primitive_type [0, 0] - [0, 4])
    declarator: function_declarator [0, 5] - [0, 39])
      declarator: parenthesized_declarator [0, 5] - [0, 34])
        scoped_identifier [0, 6] - [0, 33])
          namespace: namespace_identifier [0, 6] - [0, 11])
          ERROR [0, 13] - [0, 14])
          name: identifier [0, 14] - [0, 33])
      parameters: parameter_list [0, 34] - [0, 39])
        parameter_declaration [0, 35] - [0, 38])
          type: primitive_type [0, 35] - [0, 38])

Looks like the * is not well recognized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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