From 344b36866bd5d565c0e7e921c9a431b5dc490465 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Mon, 16 Aug 2021 17:19:35 +0200 Subject: fix(vim): highlight more punctuation --- queries/vim/highlights.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'queries/vim') 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 -- cgit v1.2.3