mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
All credit goes to @NTBBloodbath. See: https://github.com/NTBBloodbath/rest.nvim/issues/75#issuecomment-960447966 Co-authored-by: NTBBloodbath <bloodbathalchemist@protonmail.com>
33 lines
472 B
Scheme
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
|