tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 31 forks source link

Error when parsing `outer` keyword #131

Closed mjrodgers closed 4 months ago

mjrodgers commented 5 months ago

Currently the use of the outer keyword in a for loop is misinterpreted as the loop variable.

begin
    local i = 1
    for outer i in 1:3
        print(i)
    end
    print(i)    
end

gives (just looking at the loop)

for statement
  for binding
    identifier
    ERROR
    range expression
    [...]