sublime-varnish icon indicating copy to clipboard operation
sublime-varnish copied to clipboard

return(deliver_stale)

Open selwynpolit opened this issue 7 years ago • 4 comments

The plugin stops its cool syntax hilighting if I try return(deliver_stale) This is used in fastly's VCL 2.x fork. See https://docs.fastly.com/guides/performance-tuning/serving-stale-content

/* deliver stale if the object is available */
if (stale.exists) {
  return(deliver_stale);
}

selwynpolit avatar Apr 26 '17 16:04 selwynpolit

Found this ticket through here. I, too, have noticed that if using deliver_stale the syntax highlighting in GitHub stops. It's pretty annoying.

lukevers avatar Aug 04 '17 15:08 lukevers

My guess is we'd just have to add deliver_stale in here.

- <string>(deliver|error|fetch|hash|hit_for_pass|lookup|ok|pass|pipe|restart|synth|retry|abandon|fail|purge)</string>
+ <string>(deliver|deliver_stale|error|fetch|hash|hit_for_pass|lookup|ok|pass|pipe|restart|synth|retry|abandon|fail|purge)</string>

lukevers avatar Aug 04 '17 15:08 lukevers

Just opened a PR and tested it out (see #5). deliver_stale needed to be before deliver, but it's working now.

lukevers avatar Aug 04 '17 16:08 lukevers

@brandonwamboldt Any update on this?

lukevers avatar Sep 26 '17 12:09 lukevers