pattern: Fixed color overriding of struct members when struct has a color set already

Fixes #409
This commit is contained in:
WerWolv
2022-01-29 22:17:51 +01:00
parent 362413dbe7
commit bfa3538745
2 changed files with 9 additions and 5 deletions

View File

@@ -880,7 +880,7 @@ namespace hex::pl {
if (!isFunction) {
auto type = parseType();
if (MATCHES(sequence(IDENTIFIER, SEPARATOR_SQUAREBRACKETOPEN)) && sequence<Not>(SEPARATOR_SQUAREBRACKETOPEN))
if (MATCHES(sequence(IDENTIFIER, SEPARATOR_SQUAREBRACKETOPEN) && sequence<Not>(SEPARATOR_SQUAREBRACKETOPEN)))
member = parseMemberArrayVariable(type);
else if (MATCHES(sequence(IDENTIFIER)))
member = parseMemberVariable(type);