Skip to content

Commit

Permalink
add tree-sitter-iex (#1576)
Browse files Browse the repository at this point in the history
* add tree-sitter-iex

* run docgen task

* fix url for iex submodule
  • Loading branch information
the-mikedavis authored Jan 25, 2022
1 parent ed03be1 commit 7bce915
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,7 @@
path = helix-syntax/languages/tree-sitter-elm
url = https://github.com/elm-tooling/tree-sitter-elm
shallow = true
[submodule "helix-syntax/languages/tree-sitter-iex"]
path = helix-syntax/languages/tree-sitter-iex
url = https://github.com/elixir-lang/tree-sitter-iex
shallow = true
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
| graphql || | | |
| haskell || | | `haskell-language-server-wrapper` |
| html || | | |
| iex || | | |
| java || | | |
| javascript || || `typescript-language-server` |
| json || || |
Expand Down
1 change: 1 addition & 0 deletions helix-syntax/languages/tree-sitter-iex
Submodule tree-sitter-iex added at 3ec550
7 changes: 7 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -586,3 +586,10 @@ auto-format = true
comment-token = "--"
language-server = { command = "elm-language-server" }
indent = { tab-width = 4, unit = " " }

[[language]]
name = "iex"
scope = "source.iex"
injection-regex = "iex"
file-types = ["iex"]
roots = []
1 change: 1 addition & 0 deletions runtime/queries/iex/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(prompt) @comment
6 changes: 6 additions & 0 deletions runtime/queries/iex/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
((evaluation_block (prompt_line (expression) @injection.content))
(#set! injection.language "elixir")
(#set! injection.combined))

((result) @injection.content
(#set! injection.language "elixir"))

0 comments on commit 7bce915

Please sign in to comment.