sublime-varnish
sublime-varnish copied to clipboard
return(deliver_stale)
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);
}
Found this ticket through here. I, too, have noticed that if using deliver_stale
the syntax highlighting in GitHub stops. It's pretty annoying.
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>
Just opened a PR and tested it out (see #5). deliver_stale
needed to be before deliver
, but it's working now.
@brandonwamboldt Any update on this?