aboutsummaryrefslogtreecommitdiff
path: root/plugins/lfautoinsert.lua
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-05-12 22:39:03 +0100
committerrxi <rxi@users.noreply.github.com>2020-05-12 22:39:03 +0100
commitfcde4aa617d68aa41dabb78eefb616c29ba94379 (patch)
tree59f67d619250b8ad0fb8a15135b3a7d1b97369ec /plugins/lfautoinsert.lua
parent38983228c83dcdf267a06be8b9174e233a082c76 (diff)
downloadlite-xl-plugins-fcde4aa617d68aa41dabb78eefb616c29ba94379.tar.gz
lite-xl-plugins-fcde4aa617d68aa41dabb78eefb616c29ba94379.zip
Fixed #if and #else on lfautoinsert
Diffstat (limited to 'plugins/lfautoinsert.lua')
-rw-r--r--plugins/lfautoinsert.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/lfautoinsert.lua b/plugins/lfautoinsert.lua
index 10b418f..e395eac 100644
--- a/plugins/lfautoinsert.lua
+++ b/plugins/lfautoinsert.lua
@@ -10,8 +10,8 @@ config.autoinsert_map = {
["%[%[%s*\n"] = "]]",
["=%s*\n"] = false,
[":%s*\n"] = false,
- ["^#if%s*\n"] = "#endif",
- ["^#else%s*\n"] = "#endif",
+ ["^#if.*\n"] = "#endif",
+ ["^#else.*\n"] = "#endif",
["%f[%w]do%s*\n"] = "end",
["%f[%w]then%s*\n"] = "end",
["%f[%w]else%s*\n"] = "end",