diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-11-02 19:55:35 -0700 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-22 08:56:14 +0100 |
| commit | 2d5c122af9c3c842d74a137446dae8ff349206ac (patch) | |
| tree | 750f103b5b55eae65d2671287d7947e29382496b /queries/http/highlights.scm | |
| parent | bot(lockfile): update nu, perl, robot, scala, sql, teal (diff) | |
| download | nvim-treesitter-2d5c122af9c3c842d74a137446dae8ff349206ac.tar nvim-treesitter-2d5c122af9c3c842d74a137446dae8ff349206ac.tar.gz nvim-treesitter-2d5c122af9c3c842d74a137446dae8ff349206ac.tar.bz2 nvim-treesitter-2d5c122af9c3c842d74a137446dae8ff349206ac.tar.lz nvim-treesitter-2d5c122af9c3c842d74a137446dae8ff349206ac.tar.xz nvim-treesitter-2d5c122af9c3c842d74a137446dae8ff349206ac.tar.zst nvim-treesitter-2d5c122af9c3c842d74a137446dae8ff349206ac.zip | |
feat(http): more comprehensive highlights
Diffstat (limited to 'queries/http/highlights.scm')
| -rw-r--r-- | queries/http/highlights.scm | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/queries/http/highlights.scm b/queries/http/highlights.scm index 76d62778c..1ac243729 100644 --- a/queries/http/highlights.scm +++ b/queries/http/highlights.scm @@ -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) |
