tree-sitter-cpp
tree-sitter-cpp copied to clipboard
constexpr macro parsing issue
Declaring a constexpr macro works well if the total length of the line is less than 38 chars -

However, adding one more char to the line containing the macro causes the following class definition to be incorrectly handled.

Yeah, the error recovery heuristics take into account the size of text that must be wrapped in an error (in addition to the number of syntax nodes), so it is going to depend on the text of the code that's causing the parse error.