aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/nim_format_string/highlights.scm
blob: 02a75e6a3d21f45f5f424056523cd9a480c7afd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(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)