ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Varnish VCL

by brandonwamboldt ST2/ST3

Improved syntax highlighting for Varnish VCL configuration files

Details

Installs

  • Total 3K
  • Win 558
  • OS X 2K
  • Linux 726
Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31
Windows 0 0 0 0 1 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 2 0 0 3 0 1 1 0 1 1 1 1 0 0 0 1 1 1
OS X 0 1 2 2 1 1 0 0 0 1 5 6 0 1 3 2 6 3 2 1 0 5 1 4 2 0 0 1 0 3 2 1 2 0 0 3 4 0 3 3 2 2 4 3 3 3
Linux 1 0 0 0 0 0 0 0 1 2 3 1 0 0 0 0 0 1 0 0 0 0 1 2 0 0 1 0 1 1 1 0 1 0 0 1 1 4 0 1 1 0 0 1 0 1

Readme

Source
raw.​githubusercontent.​com

VCL Syntax Highlighting Plugin

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.

screenshot

Snippets

There are a bunch of snippets in the Snippets/ folder, please look there for more information.

  • acl - Creates an ACL
  • backend - Creates a backend
    • probe - Add a .probe definition to your backend
  • deliver - Replace with return (deliver);
  • director - Creates a director
  • if - Creates an if statement
  • log - Replace with std.log("");
  • lookup - Replace with return (lookup);
  • pass - Replace with return (pass);
  • restart - Replace with return (restart);
  • sub - Creates a subroutine