mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
fix(htmldjango): improve highlights
This commit is contained in:
parent
208504c707
commit
04a9a90c2a
2 changed files with 19 additions and 5 deletions
|
|
@ -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