mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
feat(htmldjango): improve punctuation highlighting
In Django templates `{{` and `{%` are interpolations, so they should be
highlighted as @punctuation.special.
Don't highlight quotes as delimiters (consistency) and add missing comma
delimiter.
This commit is contained in:
parent
3c6af36794
commit
45ee50d02b
1 changed files with 2 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
"{%"
|
"{%"
|
||||||
"%}"
|
"%}"
|
||||||
(end_paired_statement)
|
(end_paired_statement)
|
||||||
] @punctuation.bracket
|
] @punctuation.special
|
||||||
|
|
||||||
(tag_name) @function
|
(tag_name) @function
|
||||||
|
|
||||||
|
|
@ -69,6 +69,5 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
":"
|
":"
|
||||||
"'"
|
","
|
||||||
"\""
|
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue