aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2024-03-16 16:28:31 +0200
committernvim-treesitter-bot[bot] <157957100+nvim-treesitter-bot[bot]@users.noreply.github.com>2024-03-16 14:40:59 +0000
commit5b8458c5aa533803febabe31c018030826f86ac7 (patch)
treeebd2c9fe495f624b666121661bf0709b858d5f51
parentbot(lockfile): update devicetree, dtd, htmldjango, perl, racket, scheme, v, w... (diff)
downloadnvim-treesitter-5b8458c5aa533803febabe31c018030826f86ac7.tar
nvim-treesitter-5b8458c5aa533803febabe31c018030826f86ac7.tar.gz
nvim-treesitter-5b8458c5aa533803febabe31c018030826f86ac7.tar.bz2
nvim-treesitter-5b8458c5aa533803febabe31c018030826f86ac7.tar.lz
nvim-treesitter-5b8458c5aa533803febabe31c018030826f86ac7.tar.xz
nvim-treesitter-5b8458c5aa533803febabe31c018030826f86ac7.tar.zst
nvim-treesitter-5b8458c5aa533803febabe31c018030826f86ac7.zip
fix(htmldjango): update highlights
-rw-r--r--queries/htmldjango/highlights.scm11
1 files changed, 7 insertions, 4 deletions
diff --git a/queries/htmldjango/highlights.scm b/queries/htmldjango/highlights.scm
index 5bbc4211b..a411e8f15 100644
--- a/queries/htmldjango/highlights.scm
+++ b/queries/htmldjango/highlights.scm
@@ -12,10 +12,13 @@
(end_paired_statement)
] @punctuation.bracket
-[
- "end"
- (tag_name)
-] @function
+(tag_name) @function
+
+((tag_name) @keyword.conditional
+ (#any-of? @keyword.conditional "if" "elif" "else" "endif"))
+
+((tag_name) @keyword.repeat
+ (#any-of? @keyword.repeat "for" "endfor"))
(variable_name) @variable