Skip to content

Commit

Permalink
Add {req,req_top,resp,bereq,beresp,obj}.time
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsch committed Dec 6, 2021
1 parent b314b37 commit afd1d9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Unreleased

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

## 0.1.4 - 2021-06-16

* Add bereq.is\_hitmiss, bereq.is\_hitpass and req.hash\_ignore\_vary.
Expand Down
10 changes: 5 additions & 5 deletions syntax/vcl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ 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\.ttl|req\.url|req\.xid|req|req_top\.http\.[a-zA-Z0-9_-]+|req_top\.method|req_top\.proto|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)>" 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\.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\.ttl|beresp\.uncacheable|beresp\.was_304|beresp)>" contained
syn match vclVariable "\v<(obj\.age|obj\.can_esi|obj\.grace|obj\.hits|obj\.http\.[a-zA-Z0-9_-]+|obj\.keep|obj\.lastuse|obj\.proto|obj\.reason|obj\.response|obj\.status|obj\.storage|obj\.ttl|obj\.uncacheable|obj)>" 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<(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
syn match vclVariable "\v<(obj\.age|obj\.can_esi|obj\.grace|obj\.hits|obj\.http\.[a-zA-Z0-9_-]+|obj\.keep|obj\.lastuse|obj\.proto|obj\.reason|obj\.response|obj\.status|obj\.storage|obj\.time|obj\.ttl|obj\.uncacheable|obj)>" contained
syn match vclVariable "\v<(sess\.idle_send_timeout|sess\.send_timeout|sess\.timeout_idle|sess\.timeout_linger|sess\.xid)>" contained
syn match vclVariable "\v<(storage\.[a-zA-Z0-9_-]+\.(free_space|happy|used_space)|storage\.[a-zA-Z0-9_-]+)>" contained

Expand Down

0 comments on commit afd1d9b

Please sign in to comment.