summaryrefslogtreecommitdiffstats
path: root/queries/nim_format_string/highlights.scm
blob: 94a239dfbadf99b8a2b9caa8e8d95042c02ae094 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(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)? @conditional.ternary
  sign: (sign)? @operator
  hash: (hash)? @punctuation.special
  zero: (zero)? @field
  min_width: (min_width)? @number
  precision: (precision)? @number
  type: (type)? @type)

(matching_curlies 
  nim_expression: (nim_expression 
    escaped_curly: (escaped_curly)+ @string.escape) @none)