Varnish Configuration Language grammar for tree-sitter.
For usage with nvim-treesitter, add this to your configuration:
-- Register VCL parser
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.vcl = {
install_info = {
url = "https://github.com/ntsk/tree-sitter-vcl",
files = {"src/parser.c"},
branch = "main",
},
filetype = "vcl",
}" Set filetype and enable highlighting
autocmd BufNewFile,BufRead *.vcl set filetype=vcl
autocmd FileType vcl TSBufEnable highlightThen run :TSInstall vcl