alemuller / tree-sitter-make

MIT License
39 stars 14 forks source link

Wrong type when variable_assignment have an identation #22

Open Freed-Wu opened 11 months ago

Freed-Wu commented 11 months ago
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.