diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-12 22:39:03 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-05-12 22:39:03 +0100 |
commit | fcde4aa617d68aa41dabb78eefb616c29ba94379 (patch) | |
tree | 59f67d619250b8ad0fb8a15135b3a7d1b97369ec /plugins/lfautoinsert.lua | |
parent | 38983228c83dcdf267a06be8b9174e233a082c76 (diff) | |
download | lite-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.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", |