mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 04:17:43 +03:00
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>
This commit is contained in:
parent
75a8b789d2
commit
dba22c60ed
6 changed files with 74 additions and 0 deletions
6
runtime/queries/dockerfile/injections.scm
Normal file
6
runtime/queries/dockerfile/injections.scm
Normal file
|
@ -0,0 +1,6 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
([(shell_command) (shell_fragment)] @injection.content
|
||||
(#set! injection.language "bash"))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue