mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -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
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1,7 @@
|
|||
(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