mirror of
https://github.com/helix-editor/helix.git
synced 2024-08-17 06:40:47 +03:00
add tree-sitter-iex (#1576)
* add tree-sitter-iex * run docgen task * fix url for iex submodule
This commit is contained in:
parent
ed03be1450
commit
7bce91556a
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -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
|
||||
|
@ -21,6 +21,7 @@
|
||||
| graphql | ✓ | | | |
|
||||
| haskell | ✓ | | | `haskell-language-server-wrapper` |
|
||||
| html | ✓ | | | |
|
||||
| iex | ✓ | | | |
|
||||
| java | ✓ | | | |
|
||||
| javascript | ✓ | | ✓ | `typescript-language-server` |
|
||||
| json | ✓ | | ✓ | |
|
||||
|
1
helix-syntax/languages/tree-sitter-iex
Submodule
1
helix-syntax/languages/tree-sitter-iex
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 3ec55082cf0be015d03148be8edfdfa8c56e77f9
|
@ -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
runtime/queries/iex/highlights.scm
Normal file
1
runtime/queries/iex/highlights.scm
Normal file
@ -0,0 +1 @@
|
||||
(prompt) @comment
|
6
runtime/queries/iex/injections.scm
Normal file
6
runtime/queries/iex/injections.scm
Normal 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"))
|
Loading…
Reference in New Issue
Block a user