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 4K
  • Win 667
  • OS X 3K
  • Linux 892
Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7
Windows 0 0 0 0 0 2 0 0 1 0 1 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 0 0 2 0 1 0
OS X 0 0 1 0 0 1 1 3 3 1 0 0 0 1 0 2 2 0 1 0 1 0 0 1 2 0 3 3 2 0 3 2 0 2 0 0 0 1 1 0 0 1 0 0 1
Linux 0 1 2 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 2 1 0 0 0 0 0 2 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 3

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.

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