Skip to content

ntsk/tree-sitter-vcl

Repository files navigation

tree-sitter-vcl

CI

Varnish Configuration Language grammar for tree-sitter.

Usage

Neovim

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 highlight

Then run :TSInstall vcl

References

About

Varnish Configuration Language grammar for tree-sitter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •