feat(http): update parser queries from upstream

This commit is contained in:
Amaan Qureshi 2023-04-20 05:20:02 -04:00
parent eedc5198a1
commit c44a63ffdc
4 changed files with 62 additions and 15 deletions

View file

@ -1,19 +1,60 @@
; inherits: json
; Keywords
; Display errors
(ERROR) @error
(scheme) @keyword
; Methods
(method) @method
; Constants
(const_spec) @constant
; Variables
(identifier) @variable
; Fields
(pair name: (identifier) @field)
; Parameters
(query_param (key) @parameter)
; Operators
[
"="
"?"
"&"
"@"
] @operator
; Literals
(string) @string
(target_url) @string @text.uri
(number) @number
; (boolean) @boolean
(null) @constant.builtin
; Punctuation
[ "{{" "}}" ] @punctuation.bracket
[
":"
] @punctuation.delimiter
; Comments
(comment) @comment
(request
method: (method) @keyword
url: (url) @text.uri)
(comment) @comment @spell
(header
name: (name) @constant
value: (value))
; Errors
; rest.nvim Neovim plugin specific features
(external_body
json_file: (json_file) @text.uri) @keyword
(ERROR) @error

View file

@ -1 +1,7 @@
(comment) @comment
(json_body) @json
; (xml_body) @xml
; (graphql_body) @graphql Not used as of now..