on master help sign in
update tree-sitter-elixir

news: - tree-sitter-elixir now powers Elixir syntax highlighting on github.com - GitHub now supports code-navigation for Elixir repos via tree-sitter-elixir changes: - modules now use the `@module` highlight, which was added upstream to tree-sitter - it seems appropriate to use `@namespace` to follow helix convention - added nullary range operator (e.g. `Enum.to_list(..) == []`), a new syntax for elixir 1.14 - a fix for stab clause nodes mis-highlighting when the right hand side of the stab clause contained multiple simple expressions

commit18194789407c23d4076e8f3f54ad493d93fac258 authorMichael Davis <mcarsondavis@gmail.com> dateWed 2 Mar 2022, 09:09 (5 years ago) parente2a5071
2 files changed+5−5
languages.toml+3−3 runtime/queries/elixir/highlights.scm+2−2
languages.toml+3−3
@@ -78,8 +78,8 @@ source = { git = "https://github.com/yusdacra/tree-sitter-protobuf", rev = "19c2
7878[[language]]
7979name = "elixir"
8080scope = "source.elixir"
81−injection-regex = "elixir"
82−file-types = ["ex", "exs"]
81+injection-regex = "(elixir|ex)"
82+file-types = ["ex", "exs", "mix.lock"]
8383shebangs = ["elixir"]
8484roots = []
8585comment-token = "#"
@@ -88,7 +88,7 @@ indent = { tab-width = 2, unit = " " }
8888
8989[[grammar]]
9090name = "elixir"
91−source = { git = "https://github.com/elixir-lang/tree-sitter-elixir", rev = "f5d7bda543da788bd507b05bd722627dde66c9ec" }
91+source = { git = "https://github.com/elixir-lang/tree-sitter-elixir", rev = "60863fc6e27d60cf4b1917499ed2259f92c7800e" }
9292
9393[[language]]
9494name = "fish"
runtime/queries/elixir/highlights.scm+2−2
@@ -82,11 +82,11 @@
8282(integer) @constant.numeric.integer
8383(float) @constant.numeric.float
8484
85−(alias) @type
85+(alias) @namespace
8686
8787(call
8888 target: (dot
89− left: (atom) @type))
89+ left: (atom) @namespace))
9090
9191(char) @constant.character
9292