mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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"
|
||||
},
|
||||
"dockerfile": {
|
||||
"revision": "33e22c33bcdbfc33d42806ee84cfd0b1248cc392"
|
||||
"revision": "439c3e7b8a9bfdbf1f7d7c2beaae4173dc484cbf"
|
||||
},
|
||||
"dot": {
|
||||
"revision": "9ab85550c896d8b294d9b9ca1e30698736f08cea"
|
||||
|
|
|
|||
|
|
@ -413,7 +413,7 @@ list.djot = {
|
|||
list.dockerfile = {
|
||||
install_info = {
|
||||
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
||||
files = { "src/parser.c" },
|
||||
files = { "src/parser.c", "src/scanner.c" },
|
||||
},
|
||||
maintainers = { "@camdencheek" },
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,15 @@
|
|||
|
||||
(double_quoted_string) @string
|
||||
|
||||
[
|
||||
(heredoc_marker)
|
||||
(heredoc_end)
|
||||
] @label
|
||||
|
||||
((heredoc_block
|
||||
(heredoc_line) @string)
|
||||
(#set! "priority" 90))
|
||||
|
||||
(expansion
|
||||
[
|
||||
"$"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
((comment) @injection.content
|
||||
(#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.include-children))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue