aboutsummaryrefslogtreecommitdiff
path: root/plugins/lfautoinsert.lua
diff options
context:
space:
mode:
authorcukmekerb <cukmekerb@gmail.com>2021-07-31 15:15:59 -0700
committercukmekerb <cukmekerb@gmail.com>2021-07-31 15:15:59 -0700
commitb1cd3e5fc42a9175f8298af5e93fa09321c217e8 (patch)
tree423e00d51f3636d98a3423e82fcebb900404af13 /plugins/lfautoinsert.lua
parentf4770e32fd3eda88d2a68f5fd878982a55f83419 (diff)
downloadlite-xl-plugins-b1cd3e5fc42a9175f8298af5e93fa09321c217e8.tar.gz
lite-xl-plugins-b1cd3e5fc42a9175f8298af5e93fa09321c217e8.zip
lfautoinsert: add handlebars block helpers
Diffstat (limited to 'plugins/lfautoinsert.lua')
-rw-r--r--plugins/lfautoinsert.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua
index 0534aa8..f03d9af 100644
--- a/plugins/lfautoinsert.lua
+++ b/plugins/lfautoinsert.lua
@@ -13,6 +13,7 @@ config.lfautoinsert_map = {
[":%s*\n"] = false,
["->%s*\n"] = false,
["^%s*<([^/][^%s>]*)[^>]*>%s*\n"] = "</$TEXT>",
+ ["^%s*{{#([^/][^%s}]*)[^}]*}}%s*\n"] = "{{/$TEXT}}",
["/%*%s*\n"] = "*/",
["c/c++"] = {
file_patterns = {