aboutsummaryrefslogtreecommitdiffstats
path: root/queries/foam
diff options
context:
space:
mode:
authorElwardi <elwardifadeli@gmail.com>2021-12-14 20:40:48 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-01-08 13:20:52 +0100
commit9b35c671eaf2ed4b7ca22a860d326571ea93146e (patch)
treeccdff73f30b63204687bca4f2d6690d756fa1f60 /queries/foam
parentChange OpenFOAM file detection auto-cmds (diff)
downloadnvim-treesitter-9b35c671eaf2ed4b7ca22a860d326571ea93146e.tar
nvim-treesitter-9b35c671eaf2ed4b7ca22a860d326571ea93146e.tar.gz
nvim-treesitter-9b35c671eaf2ed4b7ca22a860d326571ea93146e.tar.bz2
nvim-treesitter-9b35c671eaf2ed4b7ca22a860d326571ea93146e.tar.lz
nvim-treesitter-9b35c671eaf2ed4b7ca22a860d326571ea93146e.tar.xz
nvim-treesitter-9b35c671eaf2ed4b7ca22a860d326571ea93146e.tar.zst
nvim-treesitter-9b35c671eaf2ed4b7ca22a860d326571ea93146e.zip
Better punctuation queries for foam
Diffstat (limited to 'queries/foam')
-rw-r--r--queries/foam/highlights.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/queries/foam/highlights.scm b/queries/foam/highlights.scm
index 2c33a6fd0..defa2ce47 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