alemuller / tree-sitter-make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong type when variable_assignment have an identation

Freed-Wu opened this issue · comments

commented
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.