mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(htmldjango): improve highlights
This commit is contained in:
parent
208504c707
commit
04a9a90c2a
2 changed files with 19 additions and 5 deletions
|
|
@ -2,8 +2,9 @@
|
|||
(erroneous_end_tag_name) @error
|
||||
(comment) @comment @spell
|
||||
(attribute_name) @tag.attribute
|
||||
(attribute
|
||||
((attribute
|
||||
(quoted_attribute_value) @string)
|
||||
(#set! "priority" 99))
|
||||
(text) @text @spell
|
||||
|
||||
((element (start_tag (tag_name) @_tag) (text) @text.title)
|
||||
|
|
|
|||
|
|
@ -23,13 +23,26 @@
|
|||
|
||||
(keyword) @keyword
|
||||
|
||||
(operator) @operator
|
||||
(variable "|" @operator)
|
||||
(paired_statement "=" @operator)
|
||||
[
|
||||
"|"
|
||||
"="
|
||||
(operator)
|
||||
] @operator
|
||||
(keyword_operator) @keyword.operator
|
||||
|
||||
(string) @string
|
||||
(filter [ "'" "\"" ] . (filter_argument) @string)
|
||||
|
||||
(number) @number
|
||||
((filter (filter_argument) @number)
|
||||
(#lua-match? @number "^%d+$"))
|
||||
|
||||
(boolean) @boolean
|
||||
((filter (filter_argument) @boolean)
|
||||
(#any-of? @boolean "True" "False"))
|
||||
|
||||
(string) @string
|
||||
[
|
||||
":"
|
||||
"'"
|
||||
"\""
|
||||
] @punctuation.delimiter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue