Sat, 08 Apr 2023 12:55:11 +0300
Fix BFC formatting not working due to being evaluated after comment format
src/ldrawsyntaxhighlighter.cpp | file | annotate | diff | comparison | revisions |
--- 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); }