mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
feat(dockerfile): adapt for parser update
This commit is contained in:
parent
bc80862298
commit
d8bf42b262
4 changed files with 18 additions and 3 deletions
|
|
@ -120,7 +120,7 @@
|
||||||
"revision": "63f176e7db5fca073b55b98b7e5e95afd1587fcb"
|
"revision": "63f176e7db5fca073b55b98b7e5e95afd1587fcb"
|
||||||
},
|
},
|
||||||
"dockerfile": {
|
"dockerfile": {
|
||||||
"revision": "33e22c33bcdbfc33d42806ee84cfd0b1248cc392"
|
"revision": "439c3e7b8a9bfdbf1f7d7c2beaae4173dc484cbf"
|
||||||
},
|
},
|
||||||
"dot": {
|
"dot": {
|
||||||
"revision": "9ab85550c896d8b294d9b9ca1e30698736f08cea"
|
"revision": "9ab85550c896d8b294d9b9ca1e30698736f08cea"
|
||||||
|
|
|
||||||
|
|
@ -413,7 +413,7 @@ list.djot = {
|
||||||
list.dockerfile = {
|
list.dockerfile = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
||||||
files = { "src/parser.c" },
|
files = { "src/parser.c", "src/scanner.c" },
|
||||||
},
|
},
|
||||||
maintainers = { "@camdencheek" },
|
maintainers = { "@camdencheek" },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,15 @@
|
||||||
|
|
||||||
(double_quoted_string) @string
|
(double_quoted_string) @string
|
||||||
|
|
||||||
|
[
|
||||||
|
(heredoc_marker)
|
||||||
|
(heredoc_end)
|
||||||
|
] @label
|
||||||
|
|
||||||
|
((heredoc_block
|
||||||
|
(heredoc_line) @string)
|
||||||
|
(#set! "priority" 90))
|
||||||
|
|
||||||
(expansion
|
(expansion
|
||||||
[
|
[
|
||||||
"$"
|
"$"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
((shell_command) @injection.content
|
((shell_command
|
||||||
|
(shell_fragment) @injection.content)
|
||||||
|
(#set! injection.language "bash")
|
||||||
|
(#set! injection.combined))
|
||||||
|
|
||||||
|
((run_instruction
|
||||||
|
(heredoc_block) @injection.content)
|
||||||
(#set! injection.language "bash")
|
(#set! injection.language "bash")
|
||||||
(#set! injection.include-children))
|
(#set! injection.include-children))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue