From fcde4aa617d68aa41dabb78eefb616c29ba94379 Mon Sep 17 00:00:00 2001 From: rxi Date: Tue, 12 May 2020 22:39:03 +0100 Subject: Fixed #if and #else on lfautoinsert --- plugins/lfautoinsert.lua | 4 ++-- 1 file 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", -- cgit v1.2.3