diff options
-rw-r--r-- | plugins/lfautoinsert.lua | 4 |
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", |