feat(http): more comprehensive highlights

This commit is contained in:
Riley Bruins 2024-11-02 19:55:35 -07:00 committed by Christian Clason
parent eff88f4e8b
commit 2d5c122af9
3 changed files with 68 additions and 2 deletions

View file

@ -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)