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

@ -246,7 +246,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [hocon](https://github.com/antosha417/tree-sitter-hocon) (maintained by @antosha417)
- [x] [html](https://github.com/tree-sitter/tree-sitter-html) (maintained by @TravonteD)
- [x] [htmldjango](https://github.com/interdependence/tree-sitter-htmldjango) (experimental, maintained by @ObserverOfTime)
- [x] [http](https://github.com/rest-nvim/tree-sitter-http) (maintained by @NTBBloodbath)
- [x] [http](https://github.com/rest-nvim/tree-sitter-http) (maintained by @amaanq)
- [x] [ini](https://github.com/justinmk/tree-sitter-ini) (experimental, maintained by @theHamsta)
- [x] [java](https://github.com/tree-sitter/tree-sitter-java) (maintained by @p00f)
- [x] [javascript](https://github.com/tree-sitter/tree-sitter-javascript) (maintained by @steelsojka)

View file

@ -219,7 +219,7 @@
"revision": "b2dba02eddab66be669022320273d0dfe1ff923d"
},
"http": {
"revision": "2c6c44574031263326cb1e51658bbc0c084326e7"
"revision": "f41d3e97ad148f0b2c2d913e3834ccd5816fdc02"
},
"ini": {
"revision": "1a0ce072ebf3afac7d5603d9a95bb7c9a6709b44"

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..