tree-sitter-make
tree-sitter-make copied to clipboard
Wrong type when variable_assignment have an identation
ifeq ($(OS_TYPE),linux-gnu)
A := 1
else
A := 2
endif
all:
@echo $(A)
>>> tree.root_node.children[0].children[1].text
b'A := 1'
>>> tree.root_node.children[0].children[1]
<Node type=recipe_line, start_point=(1, 1), end_point=(1, 7)>
tree.root_node.children[0].children[1].type
should be variable_assignment
.