fix: odd situation of section separators with ayz/abz section configured

This commit is contained in:
shadmansaleh 2021-08-25 18:35:41 +06:00 committed by Shadman
parent 1c57497863
commit f728edd31d
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ local function apply_transitional_separators(status)
copied_pos = str_checked
elseif next_char == '%' then
str_checked = str_checked + 2 -- Skip the following % too
elseif next_char == '=' then
last_hl = nil
str_checked = str_checked + 1 -- Skip the following % too
else
str_checked = str_checked + 1 -- Push it forward to avoid inf loop
end