aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/iex
diff options
context:
space:
mode:
authorMichael Davis2022-01-25 06:50:34 +0000
committerGitHub2022-01-25 06:50:34 +0000
commit7bce91556afd2430c336f2fe4a6ce3f7ce555be2 (patch)
tree37f8403015217b96a30dce03c08f2f1348337dbc /runtime/queries/iex
parented03be1450edd35738e5fa141dd08bb5a8326003 (diff)
add tree-sitter-iex (#1576)
* add tree-sitter-iex * run docgen task * fix url for iex submodule
Diffstat (limited to 'runtime/queries/iex')
-rw-r--r--runtime/queries/iex/highlights.scm1
-rw-r--r--runtime/queries/iex/injections.scm6
2 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queries/iex/highlights.scm b/runtime/queries/iex/highlights.scm
new file mode 100644
index 00000000..2847fbff
--- /dev/null
+++ b/runtime/queries/iex/highlights.scm
@@ -0,0 +1 @@
+(prompt) @comment
diff --git a/runtime/queries/iex/injections.scm b/runtime/queries/iex/injections.scm
new file mode 100644
index 00000000..48863d9d
--- /dev/null
+++ b/runtime/queries/iex/injections.scm
@@ -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"))