mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix: align line continuation highlights (#8146)
These should be `@punctuation.special`. Added the highlight for python, cylc, and make. Corrected it for earthfile and matlab.
This commit is contained in:
parent
bd99d6bd2b
commit
6ac9f2e512
5 changed files with 10 additions and 5 deletions
|
|
@ -32,6 +32,8 @@
|
||||||
(graph_parenthesis)
|
(graph_parenthesis)
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(line_continuation) @punctuation.special
|
||||||
|
|
||||||
[
|
[
|
||||||
"\""
|
"\""
|
||||||
"\"\"\""
|
"\"\"\""
|
||||||
|
|
|
||||||
|
|
@ -126,4 +126,4 @@
|
||||||
|
|
||||||
"=" @operator
|
"=" @operator
|
||||||
|
|
||||||
(line_continuation) @operator
|
(line_continuation) @punctuation.special
|
||||||
|
|
|
||||||
|
|
@ -168,3 +168,5 @@
|
||||||
"file"
|
"file"
|
||||||
"value"
|
"value"
|
||||||
] @function.builtin)
|
] @function.builtin)
|
||||||
|
|
||||||
|
"\\" @punctuation.special
|
||||||
|
|
|
||||||
|
|
@ -211,10 +211,9 @@
|
||||||
(#eq? @boolean "false"))
|
(#eq? @boolean "false"))
|
||||||
|
|
||||||
; Comments
|
; Comments
|
||||||
[
|
(comment) @comment @spell
|
||||||
(comment)
|
|
||||||
(line_continuation)
|
(line_continuation) @punctuation.special
|
||||||
] @comment @spell
|
|
||||||
|
|
||||||
((comment) @keyword.directive
|
((comment) @keyword.directive
|
||||||
(#lua-match? @keyword.directive "^%%%% "))
|
(#lua-match? @keyword.directive "^%%%% "))
|
||||||
|
|
|
||||||
|
|
@ -247,6 +247,8 @@
|
||||||
"{" @punctuation.special
|
"{" @punctuation.special
|
||||||
"}" @punctuation.special)
|
"}" @punctuation.special)
|
||||||
|
|
||||||
|
(line_continuation) @punctuation.special
|
||||||
|
|
||||||
(type_conversion) @function.macro
|
(type_conversion) @function.macro
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue