Fix BFC formatting not working due to being evaluated after comment format

Sat, 08 Apr 2023 12:55:11 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sat, 08 Apr 2023 12:55:11 +0300
changeset 343
4a82990affd5
parent 342
9fd7dcab6d76
child 344
a24da8de2a3b

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

mercurial