This is a syntax highlighting plugin for Varnish VCL files in Sublime Text 2/3 that isn't completely broken, and supports the majority of Varnish VCL features.
It's been written from scratch and is extremely fast. Some of the other VCL tmLanguage files floating around there have causing my Sublime Text CPU usage to spike because of their complex regex. This plugin has no such issue.
If I've missed something, please open an issue so I can fix it (or send me a Pull Request). I work with Varnish daily, so I'll be actively maintaining this plugin.
There are a bunch of snippets in the Snippets/
folder, please look there for more information.
acl
- Creates an ACLbackend
- Creates a backendprobe
- Add a.probe
definition to your backend
deliver
- Replace withreturn (deliver);
director
- Creates a directorif
- Creates an if statementlog
- Replace withstd.log("");
lookup
- Replace withreturn (lookup);
pass
- Replace withreturn (pass);
restart
- Replace withreturn (restart);
sub
- Creates a subroutine