mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(http): update parser queries from upstream
This commit is contained in:
parent
eedc5198a1
commit
c44a63ffdc
4 changed files with 62 additions and 15 deletions
|
|
@ -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] [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] [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] [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] [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] [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)
|
- [x] [javascript](https://github.com/tree-sitter/tree-sitter-javascript) (maintained by @steelsojka)
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@
|
||||||
"revision": "b2dba02eddab66be669022320273d0dfe1ff923d"
|
"revision": "b2dba02eddab66be669022320273d0dfe1ff923d"
|
||||||
},
|
},
|
||||||
"http": {
|
"http": {
|
||||||
"revision": "2c6c44574031263326cb1e51658bbc0c084326e7"
|
"revision": "f41d3e97ad148f0b2c2d913e3834ccd5816fdc02"
|
||||||
},
|
},
|
||||||
"ini": {
|
"ini": {
|
||||||
"revision": "1a0ce072ebf3afac7d5603d9a95bb7c9a6709b44"
|
"revision": "1a0ce072ebf3afac7d5603d9a95bb7c9a6709b44"
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,60 @@
|
||||||
; inherits: json
|
; Keywords
|
||||||
|
|
||||||
; Display errors
|
(scheme) @keyword
|
||||||
(ERROR) @error
|
|
||||||
|
; 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
|
; Comments
|
||||||
(comment) @comment
|
|
||||||
|
|
||||||
(request
|
(comment) @comment @spell
|
||||||
method: (method) @keyword
|
|
||||||
url: (url) @text.uri)
|
|
||||||
|
|
||||||
(header
|
; Errors
|
||||||
name: (name) @constant
|
|
||||||
value: (value))
|
|
||||||
|
|
||||||
; rest.nvim Neovim plugin specific features
|
(ERROR) @error
|
||||||
(external_body
|
|
||||||
json_file: (json_file) @text.uri) @keyword
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,7 @@
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
|
(json_body) @json
|
||||||
|
|
||||||
|
; (xml_body) @xml
|
||||||
|
|
||||||
|
; (graphql_body) @graphql Not used as of now..
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue