aboutsummaryrefslogtreecommitdiffstats
path: root/queries/http/highlights.scm
blob: 76d62778c8432520cee7561f2e2ab6728dc361a4 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
; Methods
(method) @function.method

; Headers
(header
  name: (_) @constant)

; Variables
(variable_declaration
  name: (identifier) @variable)

; Operators
(comment
  "=" @operator)

(variable_declaration
  "=" @operator)

; keywords
(comment
  "@" @keyword
  name: (_) @keyword)

; Literals
(request
  url: (_) @string.special.url)

(http_version) @constant

; Response
(status_code) @number

(status_text) @string

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

(header
  ":" @punctuation.delimiter)

; external JSON body
(external_body
  path: (_) @string.special.path)

; Comments
[
  (comment)
  (request_separator)
] @comment @spell