aboutsummaryrefslogtreecommitdiff
path: root/plugins/lfautoinsert.lua
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2021-08-16 19:20:24 -0230
committerGitHub <noreply@github.com>2021-08-16 19:20:24 -0230
commit3dd0d666ef9ae5a35661bfe1a5eef5d73981f75f (patch)
tree53ac997ed123d8a80aa0f5d1bf0b25c88260a3c7 /plugins/lfautoinsert.lua
parent139d90dbc1640d26981e17983f439e9f11a06617 (diff)
parent38c70503fd7019834c6c30278e235622c451f000 (diff)
downloadlite-xl-plugins-3dd0d666ef9ae5a35661bfe1a5eef5d73981f75f.tar.gz
lite-xl-plugins-3dd0d666ef9ae5a35661bfe1a5eef5d73981f75f.zip
Merge branch 'master' into language-toml
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 = {