Skip to content

Commit

Permalink
feat: update highlights query
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Nov 4, 2021
1 parent 5130e59 commit 713ba63
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions after/queries/http/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; inherits: json

; Display errors
(ERROR) @error

Expand All @@ -6,28 +8,12 @@

(request
method: (method) @keyword
url: (url) @TSURI)
url: (url) @text.uri)

(header
name: (name) @constant
value: (value))

; JSON
(json_pair
key: (_) @keyword)

(json_string) @string

(json_number) @number

(json_boolean) @boolean

(json_null) @constant

(json_escape_sequence) @TSStringEscape

(json_body) @keyword

; rest.nvim Neovim plugin specific features
(external_body
json_file: (json_file) @TSURI) @keyword
json_file: (json_file) @text.uri) @keyword

0 comments on commit 713ba63

Please sign in to comment.