mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
20
runtime/queries/nim_format_string/highlights.scm
Normal file
20
runtime/queries/nim_format_string/highlights.scm
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
(string_literal)
|
||||
|
||||
(matching_curlies
|
||||
opening_curly: (opening_curly) @punctuation.special
|
||||
equals: (equals)? @punctuation.special
|
||||
closing_curly: (closing_curly) @punctuation.special)
|
||||
|
||||
(format_specifiers
|
||||
colon: (colon) @punctuation.delimiter
|
||||
fill_align: (fill_align)? @keyword.conditional.ternary
|
||||
sign: (sign)? @operator
|
||||
hash: (hash)? @punctuation.special
|
||||
zero: (zero)? @variable.member
|
||||
min_width: (min_width)? @number
|
||||
precision: (precision)? @number
|
||||
type: (type)? @type)
|
||||
|
||||
(matching_curlies
|
||||
nim_expression: (nim_expression
|
||||
escaped_curly: (escaped_curly)+ @string.escape) @none)
|
||||
4
runtime/queries/nim_format_string/injections.scm
Normal file
4
runtime/queries/nim_format_string/injections.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
((matching_curlies
|
||||
(nim_expression
|
||||
!escaped_curly) @injection.content)
|
||||
(#set! injection.language "nim"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue