Skip to content

Commit da70732

Browse files
committed
fix: add http highlights file to repository
1 parent 9b4cf1e commit da70732

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

after/queries/http/highlights.scm

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
; Display errors
2+
(ERROR) @error
3+
4+
; Comments
5+
(comment) @comment
6+
7+
(request
8+
method: (method) @keyword
9+
url: (url) @TSURI)
10+
11+
(header
12+
name: (name) @constant
13+
value: (value))
14+
15+
; JSON
16+
(json_pair
17+
key: (_) @keyword)
18+
19+
(json_string) @string
20+
21+
(json_number) @number
22+
23+
(json_boolean) @boolean
24+
25+
(json_null) @constant
26+
27+
(json_escape_sequence) @TSStringEscape
28+
29+
(json_body) @keyword
30+
31+
; rest.nvim Neovim plugin specific features
32+
(external_body
33+
json_file: (json_file) @TSURI) @keyword

0 commit comments

Comments
 (0)