Parser.hpp: Put the condition for definitions on one line
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
dbb08a5299
commit
be7b309790
|
@ -142,12 +142,7 @@ namespace Parser {
|
|||
const auto end = find_if(beginning, lexed.end(), [¤t](const tok& it){
|
||||
return it.toktype == SEMICOLON || it.line != current.line;
|
||||
});
|
||||
if (isFinalDefine) {
|
||||
parseTree << Define<true>(current.toktext, parse(beginning, end));
|
||||
} else {
|
||||
parseTree << Define<false>(current.toktext, parse(beginning, end));
|
||||
}
|
||||
|
||||
parseTree << isFinalDefine ? Define<true>(current.toktext, parse(beginning, end)) : Define<false>(current.toktext, parse(beginning, end));
|
||||
i += 1 + isFinalDefine + distance(beginning, end);
|
||||
} else {
|
||||
const bool method = nextAre({DOT, IDENTIFIER, LPAR});
|
||||
|
|
Loading…
Reference in New Issue