diff options
| author | Elwardi <elwardifadeli@gmail.com> | 2021-12-14 20:40:48 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-08 13:20:52 +0100 |
| commit | 9b35c671eaf2ed4b7ca22a860d326571ea93146e (patch) | |
| tree | ccdff73f30b63204687bca4f2d6690d756fa1f60 /queries/foam | |
| parent | Change OpenFOAM file detection auto-cmds (diff) | |
| download | nvim-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.scm | 7 |
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 |
