add tree-sitter-iex (#1576)

* add tree-sitter-iex

* run docgen task

* fix url for iex submodule
This commit is contained in:
Michael Davis 2022-01-25 00:50:34 -06:00 committed by GitHub
parent ed03be1450
commit 7bce91556a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 0 deletions

4
.gitmodules vendored
View File

@ -214,3 +214,7 @@
path = helix-syntax/languages/tree-sitter-elm path = helix-syntax/languages/tree-sitter-elm
url = https://github.com/elm-tooling/tree-sitter-elm url = https://github.com/elm-tooling/tree-sitter-elm
shallow = true 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

View File

@ -21,6 +21,7 @@
| graphql | ✓ | | | | | graphql | ✓ | | | |
| haskell | ✓ | | | `haskell-language-server-wrapper` | | haskell | ✓ | | | `haskell-language-server-wrapper` |
| html | ✓ | | | | | html | ✓ | | | |
| iex | ✓ | | | |
| java | ✓ | | | | | java | ✓ | | | |
| javascript | ✓ | | ✓ | `typescript-language-server` | | javascript | ✓ | | ✓ | `typescript-language-server` |
| json | ✓ | | ✓ | | | json | ✓ | | ✓ | |

@ -0,0 +1 @@
Subproject commit 3ec55082cf0be015d03148be8edfdfa8c56e77f9

View File

@ -586,3 +586,10 @@ auto-format = true
comment-token = "--" comment-token = "--"
language-server = { command = "elm-language-server" } language-server = { command = "elm-language-server" }
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
[[language]]
name = "iex"
scope = "source.iex"
injection-regex = "iex"
file-types = ["iex"]
roots = []

View File

@ -0,0 +1 @@
(prompt) @comment

View File

@ -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"))