From 5cc225af44f9e39d846a507e41429a32137c9151 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Mon, 16 Aug 2021 17:19:35 +0200 Subject: [PATCH] fix(vim): highlight more punctuation --- queries/vim/highlights.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm index e10983d4f..5f5f6cd08 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