nvim-treesitter/queries/http/highlights.scm
2021-11-12 21:52:50 +01:00

33 lines
477 B
Scheme

; Display errors
(ERROR) @error
; Comments
(comment) @comment
(request
method: (method) @keyword
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) @string.escape
(json_body) @keyword
; rest.nvim Neovim plugin specific features
(external_body
json_file: (json_file) @text.uri) @keyword