diff -r 9fd7dcab6d76 -r 4a82990affd5 src/ldrawsyntaxhighlighter.cpp --- a/src/ldrawsyntaxhighlighter.cpp Sat Apr 08 12:53:15 2023 +0300 +++ b/src/ldrawsyntaxhighlighter.cpp Sat Apr 08 12:55:11 2023 +0300 @@ -81,14 +81,14 @@ &this->point3Format, &this->point4Format, }); + matchRegex(this->bfcPattern, { + &this->lineTypeFormat, + &this->bfcFormat, + }); matchRegex(this->commentPattern, { &this->lineTypeFormat, &this->nameFormat, }); - matchRegex(this->bfcPattern, { - &this->lineTypeFormat, - &this->bfcFormat, - }); if (not matched) { this->setFormat(0, text.length(), this->errorFormat); }