mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-12-22 09:59:48 +01:00
fix: deactivate multiline if an error occurs
This commit is contained in:
parent
e15cfdcd97
commit
b386643974
1 changed files with 1 additions and 0 deletions
|
@ -572,6 +572,7 @@ CParseResult CConfig::parseLine(std::string line, bool dynamic) {
|
|||
bool isMultilineContinuation = lastChar == '\\' || lastChar == '>';
|
||||
|
||||
if (isMultilineContinuation && impl->multiline.active && impl->multiline.delimiter != lastChar) {
|
||||
impl->multiline.active = false;
|
||||
result.setError("Multiline continuation character mismatch. Make sure you are not mixing \\ and >");
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue