mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Better punctuation queries for foam
This commit is contained in:
parent
8b336e61d8
commit
9b35c671ea
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue