Beaglefoot / tree-sitter-awk

GNU AWK grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmd | getline array[index] is parsed as an error

Popkornium18 opened this issue · comments

It is actually possible to getline into an array with a specific index.

awk 'BEGIN{"echo hello | rev" | getline arr[1]; print(arr[1])}'
olleh

However it is parsed as an error by tree-sitter-awk.

Thanks for reporting! Next release will have the fix.