aboutsummaryrefslogtreecommitdiffstats
path: root/queries/svelte/highlights.scm
blob: 9877fc7a525e52192953bfa89089153afb19a1d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
; inherits: html_tags

(raw_text_expr) @none

[
  (special_block_keyword)
  (then)
  (as)
] @keyword

((special_block_keyword) @keyword.coroutine
  (#eq? @keyword.coroutine "await"))

((special_block_keyword) @exception
  (#eq? @exception "catch"))

((special_block_keyword) @conditional
  (#match? @conditional "^(if|else)$"))

[
  "{"
  "}"
] @punctuation.bracket

[
  "#"
  ":"
  "/"
  "@"
] @tag.delimiter