Better punctuation queries for foam

This commit is contained in:
Elwardi 2021-12-14 20:40:48 +01:00 committed by Stephan Seitz
parent 8b336e61d8
commit 9b35c671ea

View file

@ -37,7 +37,7 @@
;; Literal numbers and strings ;; Literal numbers and strings
(number_literal) @float (number_literal) @float
(string_literal) @string (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 ;; Treat [m^2 s^-2] the same as if it was put in numbers format
(dimensions dimension: (identifier) @float) (dimensions dimension: (identifier) @float)
@ -52,8 +52,11 @@
"}" "}"
"#{" "#{"
"#}" "#}"
] @punctuation.bracket
[
";" ";"
] @punctuation ] @punctuation.delimiter
;; Special identifiers ;; Special identifiers
([(identifier) "on" "off" "true" "false" "yes" "no"] @constant.builtin ([(identifier) "on" "off" "true" "false" "yes" "no"] @constant.builtin