forked from helix-editor/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support dockerfiles (helix-editor#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 helix-editor#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>
- Loading branch information
1 parent
75a8b78
commit dba22c6
Showing
6 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule tree-sitter-dockerfile
added at
7af32b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[ | ||
"FROM" | ||
"AS" | ||
"RUN" | ||
"CMD" | ||
"LABEL" | ||
"EXPOSE" | ||
"ENV" | ||
"ADD" | ||
"COPY" | ||
"ENTRYPOINT" | ||
"VOLUME" | ||
"USER" | ||
"WORKDIR" | ||
"ARG" | ||
"ONBUILD" | ||
"STOPSIGNAL" | ||
"HEALTHCHECK" | ||
"SHELL" | ||
"MAINTAINER" | ||
"CROSS_BUILD" | ||
] @keyword | ||
|
||
[ | ||
":" | ||
"@" | ||
] @operator | ||
|
||
(comment) @comment | ||
|
||
|
||
(image_spec | ||
(image_tag | ||
":" @punctuation.special) | ||
(image_digest | ||
"@" @punctuation.special)) | ||
|
||
(double_quoted_string) @string | ||
|
||
(expansion | ||
[ | ||
"$" | ||
"{" | ||
"}" | ||
] @punctuation.special | ||
) @none | ||
|
||
((variable) @constant | ||
(#match? @constant "^[A-Z][A-Z_0-9]*$")) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
((comment) @injection.content | ||
(#set! injection.language "comment")) | ||
|
||
([(shell_command) (shell_fragment)] @injection.content | ||
(#set! injection.language "bash")) | ||
|