refactor: improve quoted values matching

main
Guilian 2025-01-25 17:01:50 +01:00
parent f25ecbe0cc
commit 554daec953
Signed by: Guilian
GPG Key ID: B86CC9678982ED8C
1 changed files with 3 additions and 6 deletions

View File

@ -356,16 +356,13 @@ function M.tokenise( content )
end
end
if char == "'" or char == '"' then
if currently_opened_quotes == char then
-- found matching closing quote type
if char == currently_opened_quotes then
currently_opened_quotes = nil
else
elseif currently_opened_quotes == nil then
currently_opened_quotes = char
end
text_memory = text_memory .. char
goto continue
end
text_memory = text_memory .. char