summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-08-16 17:19:35 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2021-08-16 21:31:22 +0200
commit344b36866bd5d565c0e7e921c9a431b5dc490465 (patch)
tree40267f9ff960df324a68335aaa36219f436c73c9 /queries
parentf2076b267ef2d53c35a964a8752eef38d7040fd5 (diff)
fix(vim): highlight more punctuation
Diffstat (limited to 'queries')
-rw-r--r--queries/vim/highlights.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index e10983d4..5f5f6cd0 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -103,3 +103,17 @@
; Some characters have different meanings based on the context
(unary_operation "!" @operator)
(binary_operation "." @operator)
+
+;; Punctuation
+
+[
+ "("
+ ")"
+ "{"
+ "}"
+ "["
+ "]"
+] @punctuation.bracket
+
+(field_expression "." @punctuation.delimiter)
+"," @punctuation.delimiter