# HG changeset patch
# User Teemu Piippo <teemu.s.piippo@gmail.com>
# Date 1680947711 -10800
# Node ID 4a82990affd52b48c66239bddaf473732604e631
# Parent  9fd7dcab6d763f436df842764fb1e93fa5b442f4
Fix BFC formatting not working due to being evaluated after comment format

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);
 	}