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

Wrong type when variable_assignment have an identation

Open Freed-Wu opened this issue 1 year ago • 0 comments

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.

Freed-Wu avatar Oct 19 '23 15:10 Freed-Wu