diff options
| author | Omar Valdez <omarantoniovaldezf2@gmail.com> | 2024-09-18 22:03:28 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-09-19 08:42:52 +0200 |
| commit | 45ee50d02bc3fa1b9cc3770da41242b07afcd6f3 (patch) | |
| tree | e25d55d4b7d8b47c38cd3fee67c7fc713d52893d /queries | |
| parent | bot(lockfile): update d, fortran, go, inko, nix, r, tlaplus (diff) | |
| download | nvim-treesitter-45ee50d02bc3fa1b9cc3770da41242b07afcd6f3.tar nvim-treesitter-45ee50d02bc3fa1b9cc3770da41242b07afcd6f3.tar.gz nvim-treesitter-45ee50d02bc3fa1b9cc3770da41242b07afcd6f3.tar.bz2 nvim-treesitter-45ee50d02bc3fa1b9cc3770da41242b07afcd6f3.tar.lz nvim-treesitter-45ee50d02bc3fa1b9cc3770da41242b07afcd6f3.tar.xz nvim-treesitter-45ee50d02bc3fa1b9cc3770da41242b07afcd6f3.tar.zst nvim-treesitter-45ee50d02bc3fa1b9cc3770da41242b07afcd6f3.zip | |
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.
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/htmldjango/highlights.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/queries/htmldjango/highlights.scm b/queries/htmldjango/highlights.scm index 5648e72fc..3992b826d 100644 --- a/queries/htmldjango/highlights.scm +++ b/queries/htmldjango/highlights.scm @@ -10,7 +10,7 @@ "{%" "%}" (end_paired_statement) -] @punctuation.bracket +] @punctuation.special (tag_name) @function @@ -69,6 +69,5 @@ [ ":" - "'" - "\"" + "," ] @punctuation.delimiter |
