Skip to content

Commit

Permalink
dockerfile: bump tree-sitter grammar to gain support for heredocs
Browse files Browse the repository at this point in the history
The diff between the two versions is here:

camdencheek/tree-sitter-dockerfile@8ee3a0f...087daa2

fixes: #3166
  • Loading branch information
sanga committed Dec 10, 2024
1 parent 5005c14 commit f4fc43c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ language-servers = [ "docker-langserver" ]

[[grammar]]
name = "dockerfile"
source = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev = "8ee3a0f7587b2bd8c45c8cb7d28bd414604aec62" }
source = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev = "087daa20438a6cc01fa5e6fe6906d77c869d19fe" }

[[language]]
name = "docker-compose"
Expand Down
9 changes: 8 additions & 1 deletion runtime/queries/dockerfile/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"SHELL"
"MAINTAINER"
"CROSS_BUILD"
(heredoc_marker)
(heredoc_end)
] @keyword

[
Expand All @@ -35,7 +37,12 @@
(image_digest
"@" @punctuation.special))

(double_quoted_string) @string
[
(double_quoted_string)
(single_quoted_string)
(json_string)
(heredoc_line)
] @string

(expansion
[
Expand Down

0 comments on commit f4fc43c

Please sign in to comment.