mirror of
https://github.com/hyprwm/hyprlang.git
synced 2026-05-05 15:37:59 +02:00
chore: formatting
This commit is contained in:
parent
2fcf3a0e6f
commit
cee1eebc2d
2 changed files with 9 additions and 12 deletions
|
|
@ -575,17 +575,15 @@ CParseResult CConfig::parseLine(std::string line, bool dynamic) {
|
|||
while ((colon = h.name.find(":", idx)) != std::string::npos && impl->categories.size() > depth) {
|
||||
auto actual = h.name.substr(idx, colon - idx);
|
||||
|
||||
if (actual != impl->categories[depth]) {
|
||||
if (actual != impl->categories[depth])
|
||||
break;
|
||||
}
|
||||
|
||||
idx = colon + 1;
|
||||
++depth;
|
||||
}
|
||||
|
||||
if (depth != impl->categories.size() || h.name.substr(idx) != LHS) {
|
||||
if (depth != impl->categories.size() || h.name.substr(idx) != LHS)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (h.options.allowFlags && (!LHS.starts_with(h.name) || LHS.contains(':') /* avoid cases where a category is called the same as a handler */))
|
||||
|
|
|
|||
|
|
@ -42,20 +42,19 @@ testCategory {
|
|||
testValueNest = 1
|
||||
nested2 {
|
||||
testValueNest = 1
|
||||
}
|
||||
categoryKeyword = this one should not either
|
||||
}
|
||||
}
|
||||
categoryKeyword = this one should not either
|
||||
}
|
||||
|
||||
categoryKeyword = we are having fun
|
||||
categoryKeyword = so much fun
|
||||
categoryKeyword = im the fun one at parties
|
||||
categoryKeyword = we are having fun
|
||||
categoryKeyword = so much fun
|
||||
categoryKeyword = im the fun one at parties
|
||||
}
|
||||
|
||||
|
||||
$SPECIALVAL1 = 1
|
||||
|
||||
special {
|
||||
key = a
|
||||
key = a
|
||||
value = $SPECIALVAL1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue