From 9b35c671eaf2ed4b7ca22a860d326571ea93146e Mon Sep 17 00:00:00 2001 From: Elwardi Date: Tue, 14 Dec 2021 20:40:48 +0100 Subject: Better punctuation queries for foam --- queries/foam/highlights.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/queries/foam/highlights.scm b/queries/foam/highlights.scm index 2c33a6fd..defa2ce4 100644 --- a/queries/foam/highlights.scm +++ b/queries/foam/highlights.scm @@ -37,7 +37,7 @@ ;; Literal numbers and strings (number_literal) @float (string_literal) @string -(escape_sequence) @escape +(escape_sequence) @string.escape ;; Treat [m^2 s^-2] the same as if it was put in numbers format (dimensions dimension: (identifier) @float) @@ -52,8 +52,11 @@ "}" "#{" "#}" +] @punctuation.bracket + +[ ";" -] @punctuation +] @punctuation.delimiter ;; Special identifiers ([(identifier) "on" "off" "true" "false" "yes" "no"] @constant.builtin -- cgit v1.2.3