elixir-lang / tree-sitter-elixir

Elixir grammar for tree-sitter
https://elixir-lang.org/tree-sitter-elixir
Apache License 2.0
248 stars 25 forks source link

Fix multiline stab clause with trailing identifier #20

Closed jonatanklosko closed 2 years ago

jonatanklosko commented 2 years ago

Fixes an edge case where

fun do
  x ->
    x
    x

  1 ->
    x
end

would be interpreted as

fun do
  x ->
    x

  x 1 ->
    x
end

(which manifests itself in the highlighting)