aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c_sharp
diff options
context:
space:
mode:
authorIron-E <36409591+Iron-E@users.noreply.github.com>2023-05-04 19:46:41 +0000
committerGitHub <noreply@github.com>2023-05-04 15:46:41 -0400
commit31d2f60734da6217c7fa8da1f6f9a9a18c52cdec (patch)
tree1dd00fd1dc9a0d14568a0ec6a58145c1d65ffa55 /queries/c_sharp
parentfeat(c_sharp): add capture for ternary operators (diff)
downloadnvim-treesitter-31d2f60734da6217c7fa8da1f6f9a9a18c52cdec.tar
nvim-treesitter-31d2f60734da6217c7fa8da1f6f9a9a18c52cdec.tar.gz
nvim-treesitter-31d2f60734da6217c7fa8da1f6f9a9a18c52cdec.tar.bz2
nvim-treesitter-31d2f60734da6217c7fa8da1f6f9a9a18c52cdec.tar.lz
nvim-treesitter-31d2f60734da6217c7fa8da1f6f9a9a18c52cdec.tar.xz
nvim-treesitter-31d2f60734da6217c7fa8da1f6f9a9a18c52cdec.tar.zst
nvim-treesitter-31d2f60734da6217c7fa8da1f6f9a9a18c52cdec.zip
fix(c_sharp): highlight `<` & `>` as `@punctuation.bracket` only in type param lists
This fixes highlighting of `x > 4`, for example
Diffstat (limited to 'queries/c_sharp')
-rw-r--r--queries/c_sharp/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/c_sharp/highlights.scm b/queries/c_sharp/highlights.scm
index e2dc3720c..9895d8341 100644
--- a/queries/c_sharp/highlights.scm
+++ b/queries/c_sharp/highlights.scm
@@ -307,10 +307,10 @@
"}"
"("
")"
- "<"
- ">"
] @punctuation.bracket
+(type_argument_list ["<" ">"] @punctuation.bracket)
+
[
(this_expression)
(base_expression)