summaryrefslogtreecommitdiff
path: root/runtime/queries/dockerfile/injections.scm
diff options
context:
space:
mode:
authorMidnight Exigent2021-12-21 09:22:15 +0000
committerGitHub2021-12-21 09:22:15 +0000
commitdba22c60ed7fc336ad619b1246333f0116b47bcd (patch)
treec7f2b55e688691b00638aaaaada72038fc751ebe /runtime/queries/dockerfile/injections.scm
parent75a8b789d20edf8b2e1d3da75497a9936953de68 (diff)
Support dockerfiles (#1303)
* allow language.config (in languages.toml) to be passed in as a toml object * Change config field for languages from json string to toml object * remove indents on languages.toml config * fix: remove patch version from serde_json import in helix-core * Use same tree-sitter-zig as upstream/master * fix(completion_popup): Fixes #1256 * Update helix-term/src/ui/completion.rs * feat(languages): Add support for `Dockerfile`s * docs(cargo-xtask-docgen): * improvement(langs-dockerfile): Add `injection-regex` to `languages.toml` for `Dockerfile` * improvement(langs-dockerfile): Add injections.scm * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'runtime/queries/dockerfile/injections.scm')
-rw-r--r--runtime/queries/dockerfile/injections.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/queries/dockerfile/injections.scm b/runtime/queries/dockerfile/injections.scm
new file mode 100644
index 00000000..20396f1a
--- /dev/null
+++ b/runtime/queries/dockerfile/injections.scm
@@ -0,0 +1,6 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))
+
+([(shell_command) (shell_fragment)] @injection.content
+ (#set! injection.language "bash"))
+