Skip to content

Commit

Permalink
Add req.transport and rearrange
Browse files Browse the repository at this point in the history
Bump version.
  • Loading branch information
fgsch committed Dec 22, 2021
1 parent afd1d9b commit 0416609
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Unreleased
## 0.1.5 - 2021-12-22

* Add {req,req\_top,resp,bereq,beresp,obj}.time.
* Add req.transport.

## 0.1.4 - 2021-06-16

Expand Down
10 changes: 7 additions & 3 deletions syntax/vcl.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" vim syntax file
" Language: Varnish Configuration Language
" Maintainer: Federico G. Schwindt <[email protected]>
" Last Change: 2021 Jun 16
" Last Change: 2021 Dec 22
if version < 600
syntax clear
elseif exists("b:current_syntax")
Expand All @@ -28,8 +28,12 @@ syn keyword vclReturn hit_for_pass lookup miss ok pass contained
syn keyword vclReturn pipe purge restart retry synth contained
syn region vclString start='"' end='"'
syn region vclString start='{"' end='"}' contains=@htmlTop
syn match vclVariable "\v<(client\.identity|client\.ip|local\.endpoint|local\.ip|local\.socket|remote\.ip|server\.hostname|server\.identity|server\.ip)>" contained
syn match vclVariable "\v<(req\.backend\.healthy|req\.backend_hint|req\.backend|req\.can_gzip|req\.esi|req\.esi_level|req\.grace|req\.hash_always_miss|req\.hash_ignore_busy|req\.hash_ignore_vary|req\.hash|req\.http\.[a-zA-Z0-9_-]+|req\.is_hitmiss|req\.is_hitpass|req\.method|req\.proto|req\.request|req\.restarts|req\.storage|req\.time|req\.ttl|req\.url|req\.xid|req|req_top\.http\.[a-zA-Z0-9_-]+|req_top\.method|req_top\.proto|req_top\.time|req_top\.url)>" contained
syn match vclVariable "\v<(client\.identity|client\.ip)>" contained
syn match vclVariable "\v<(local\.endpoint|local\.ip|local\.socket)>" contained
syn match vclVariable "\v<(remote\.ip)>" contained
syn match vclVariable "\v<(server\.hostname|server\.identity|server\.ip)>" contained
syn match vclVariable "\v<(req\.backend\.healthy|req\.backend_hint|req\.backend|req\.can_gzip|req\.esi|req\.esi_level|req\.grace|req\.hash_always_miss|req\.hash_ignore_busy|req\.hash_ignore_vary|req\.hash|req\.http\.[a-zA-Z0-9_-]+|req\.is_hitmiss|req\.is_hitpass|req\.method|req\.proto|req\.request|req\.restarts|req\.storage|req\.time|req\.ttl|req\.transport|req\.url|req\.xid|req)>" contained
syn match vclVariable "\v<(req_top\.http\.[a-zA-Z0-9_-]+|req_top\.method|req_top\.proto|req_top\.time|req_top\.url)>" contained
syn match vclVariable "\v<(resp\.body|resp\.do_esi|resp\.filters|resp\.http\.[a-zA-Z0-9_-]+|resp\.is_streaming|resp\.proto|resp\.reason|resp\.status|resp\.time|resp)>" contained
syn match vclVariable "\v<(bereq\.backend|bereq\.between_bytes_timeout|bereq\.body|bereq\.connect_timeout|bereq\.first_byte_timeout|bereq\.hash|bereq\.http\.[a-zA-Z0-9_-]+|bereq\.is_bgfetch|bereq\.is_hitmiss|bereq\.is_hitpass|bereq\.method|bereq\.proto|bereq\.retries|bereq\.time|bereq\.uncacheable|bereq\.url|bereq\.xid|bereq)" contained
syn match vclVariable "\v<(beresp\.age|beresp\.backend\.ip|beresp\.backend\.name|beresp\.backend\.port|beresp\.backend|beresp\.body|beresp\.do_esi|beresp\.do_gunzip|beresp\.do_gzip|beresp\.do_stream|beresp\.filters|beresp\.grace|beresp\.http\.[a-zA-Z0-9_-]+|beresp\.keep|beresp\.proto|beresp\.reason|beresp\.stainmode|beresp\.status|beresp\.storage|beresp\.storage_hint|beresp\.time|beresp\.ttl|beresp\.uncacheable|beresp\.was_304|beresp)>" contained
Expand Down

0 comments on commit 0416609

Please sign in to comment.