mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 07:50:07 -04:00
feat(http): more comprehensive highlights
This commit is contained in:
parent
eff88f4e8b
commit
2d5c122af9
3 changed files with 68 additions and 2 deletions
|
|
@ -5,9 +5,17 @@
|
|||
(header
|
||||
name: (_) @constant)
|
||||
|
||||
(header
|
||||
value: (_) @string)
|
||||
|
||||
; Variables
|
||||
(identifier) @variable
|
||||
|
||||
(variable_declaration
|
||||
name: (identifier) @variable)
|
||||
"@" @character.special)
|
||||
|
||||
(variable_declaration
|
||||
(value) @string)
|
||||
|
||||
; Operators
|
||||
(comment
|
||||
|
|
@ -25,7 +33,7 @@
|
|||
(request
|
||||
url: (_) @string.special.url)
|
||||
|
||||
(http_version) @constant
|
||||
(http_version) @string.special
|
||||
|
||||
; Response
|
||||
(status_code) @number
|
||||
|
|
@ -36,8 +44,12 @@
|
|||
[
|
||||
"{{"
|
||||
"}}"
|
||||
"{%"
|
||||
"%}"
|
||||
] @punctuation.bracket
|
||||
|
||||
">" @punctuation.special
|
||||
|
||||
(header
|
||||
":" @punctuation.delimiter)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue