aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Muir <rcmuir@apache.org>2025-07-21 11:49:54 -0400
committerChristian Clason <ch.clason+github@icloud.com>2025-08-05 20:06:49 +0200
commita4fa3e2d187ad98eb74d27c566ab3c330397ed75 (patch)
tree2358ae637205e0b1a5b3f14714224d8ef44a4008 /tests
parentfeat(systemverilog)!: update parser and queries (diff)
downloadnvim-treesitter-a4fa3e2d187ad98eb74d27c566ab3c330397ed75.tar
nvim-treesitter-a4fa3e2d187ad98eb74d27c566ab3c330397ed75.tar.gz
nvim-treesitter-a4fa3e2d187ad98eb74d27c566ab3c330397ed75.tar.bz2
nvim-treesitter-a4fa3e2d187ad98eb74d27c566ab3c330397ed75.tar.lz
nvim-treesitter-a4fa3e2d187ad98eb74d27c566ab3c330397ed75.tar.xz
nvim-treesitter-a4fa3e2d187ad98eb74d27c566ab3c330397ed75.tar.zst
nvim-treesitter-a4fa3e2d187ad98eb74d27c566ab3c330397ed75.zip
Revert "fix(jinja): remove crashing pattern"
This reverts commit 8c8742871a1489afd7878bfee4bc40465f4a116a.
Diffstat (limited to 'tests')
-rw-r--r--tests/query/highlights/jinja/filters.jinja19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/query/highlights/jinja/filters.jinja b/tests/query/highlights/jinja/filters.jinja
new file mode 100644
index 000000000..a084cdc1a
--- /dev/null
+++ b/tests/query/highlights/jinja/filters.jinja
@@ -0,0 +1,19 @@
+{{ name|striptags|title }}
+{# ^^^^ @variable #}
+{# ^^^^^ @function.call #}
+{# ^^^^^ @function.call #}
+
+{{ listx|join(', ') }}
+{# ^^^^^ @variable #}
+{# ^^^^ @function.call #}
+{# ^^^^ @string #}
+
+{{ listx|join(str) }}
+{# ^^^^^ @variable #}
+{# ^^^^ @function.call #}
+{# ^^^ @variable.parameter #}
+
+{{ foo.bar|random }}
+{# ^^^ @variable #}
+{# ^^^ @variable.member #}
+{# ^^^^^^ @function.call #}