tree-sitter-cpp icon indicating copy to clipboard operation
tree-sitter-cpp copied to clipboard

support list-initialization in an assignment expression

Open hokein opened this issue 4 years ago • 0 comments

Example:

 void test(int a) {
// tree-sitter output is
//   expression_statement [1, 3] - [1, 10])
//        compound_literal_expression [1, 3] - [1, 9])
//          type: type_identifier [1, 3] - [1, 4])
//          ERROR [1, 5] - [1, 6])
//          value: initializer_list [1, 7] - [1, 9])  
   a = {};
}

Looks like this is not handled in the grammar.

hokein avatar Mar 04 '21 20:03 hokein