From d9cfae1059b62f7eacc09dba181efe4894e3b086 Mon Sep 17 00:00:00 2001 From: gbprod Date: Fri, 30 Sep 2022 10:21:08 +0200 Subject: [PATCH] feat: add `twig` support (#249) Ref: https://twig.symfony.com/doc/3.x/templates.html#comments --- lua/Comment/ft.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/Comment/ft.lua b/lua/Comment/ft.lua index 826b3ab..8f516ab 100644 --- a/lua/Comment/ft.lua +++ b/lua/Comment/ft.lua @@ -27,6 +27,7 @@ local M = { latex = '%%s', lisp_l = ';;%s', lisp_b = '#|%s|#', + twig = '{#%s#}', } ---Lang table that contains commentstring (linewise/blockwise) for mutliple filetypes @@ -113,6 +114,7 @@ local L = setmetatable({ template = { M.dbl_hash }, tmux = { M.hash }, toml = { M.hash }, + twig = { M.twig, M.twig }, typescript = { M.cxx_l, M.cxx_b }, typescriptreact = { M.cxx_l, M.cxx_b }, vim = { '"%s' },