mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(dockerfile): remove injection.combined from shell_fragment bash injection
injection.combined merges shell_fragment nodes from ALL RUN commands into a single bash parse tree. The bash parser receives fragments from different RUN blocks adjacently (no separator bytes between them), causing it to parse the tail of one RUN command and the head of the next as a single command node. This makes arguments in subsequent RUN commands receive @variable.parameter highlights, causing visible color bleed. Fix: remove injection.combined so each shell_fragment gets its own bash tree. Continuation lines ending in && produce has_error=true trees, but this is harmless for highlighting in practice. Fixes #6530, #7013, #7062, #6975, #5605
This commit is contained in:
parent
c6d295e966
commit
af44a47271
1 changed files with 0 additions and 1 deletions
|
|
@ -4,7 +4,6 @@
|
|||
((shell_command
|
||||
(shell_fragment) @injection.content)
|
||||
(#set! injection.language "bash")
|
||||
(#set! injection.combined))
|
||||
|
||||
((run_instruction
|
||||
(heredoc_block) @injection.content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue