From 2d78445087be5c866a145a61b3e91614a621df90 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Wed, 5 Jul 2023 03:23:23 -0400 Subject: [PATCH] fix(foam): update queries from upstream --- lockfile.json | 2 +- queries/foam/highlights.scm | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lockfile.json b/lockfile.json index 12a8d0823..af2428bd0 100644 --- a/lockfile.json +++ b/lockfile.json @@ -132,7 +132,7 @@ "revision": "f9176908c9eb2e11eb684d79e1d00f3b29bd65c9" }, "foam": { - "revision": "024449594c2841c944463481b741b141d1ab5727" + "revision": "7ef88a8c652073785bffd7ce9c3effc68035aa11" }, "fortran": { "revision": "31552ac43ecaffa443a12ebea68cc526d334892f" diff --git a/queries/foam/highlights.scm b/queries/foam/highlights.scm index 11d31e692..5d45b0a34 100644 --- a/queries/foam/highlights.scm +++ b/queries/foam/highlights.scm @@ -29,10 +29,11 @@ ((preproc_call) @conditional (#any-of? @conditional "else" "endif")) -;; Literal numbers and strings +;; Literals (number_literal) @float (string_literal) @string (escape_sequence) @string.escape +(boolean) @boolean ;; Treat [m^2 s^-2] the same as if it was put in numbers format (dimensions dimension: (identifier) @float) @@ -54,12 +55,7 @@ "$$" ] @punctuation.bracket -[ - ";" -] @punctuation.delimiter - -;; Special identifiers -[ "on" "off" "true" "false" "yes" "no" ] @constant.builtin +";" @punctuation.delimiter ((identifier) @constant.builtin (#any-of? @constant.builtin "uniform" "non-uniform" "and" "or"))