blob: 1ac2437298ce335a889ef7e431d9f37ae64732f0 (
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
53
54
55
56
57
58
59
60
61
62
63
64
|
; Methods
(method) @function.method
; Headers
(header
name: (_) @constant)
(header
value: (_) @string)
; Variables
(identifier) @variable
(variable_declaration
"@" @character.special)
(variable_declaration
(value) @string)
; Operators
(comment
"=" @operator)
(variable_declaration
"=" @operator)
; keywords
(comment
"@" @keyword
name: (_) @keyword)
; Literals
(request
url: (_) @string.special.url)
(http_version) @string.special
; Response
(status_code) @number
(status_text) @string
; Punctuation
[
"{{"
"}}"
"{%"
"%}"
] @punctuation.bracket
">" @punctuation.special
(header
":" @punctuation.delimiter)
; external JSON body
(external_body
path: (_) @string.special.path)
; Comments
[
(comment)
(request_separator)
] @comment @spell
|