nvim-treesitter/queries/http/highlights.scm
gegoune a93c5b80d7 feat: add http parser
All credit goes to @NTBBloodbath.

See: https://github.com/NTBBloodbath/rest.nvim/issues/75#issuecomment-960447966

Co-authored-by: NTBBloodbath <bloodbathalchemist@protonmail.com>
2021-11-12 21:52:50 +01:00

33 lines
472 B
Scheme

; Display errors
(ERROR) @error
; Comments
(comment) @comment
(request
method: (method) @keyword
url: (url) @TSURI)
(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