diff -r 71c8cea3c205 -r 9fd7dcab6d76 src/ldrawsyntaxhighlighter.cpp --- a/src/ldrawsyntaxhighlighter.cpp Sat Apr 08 12:24:04 2023 +0300 +++ b/src/ldrawsyntaxhighlighter.cpp Sat Apr 08 12:53:15 2023 +0300 @@ -29,7 +29,7 @@ this->bfcPattern = QRegularExpression{QStringLiteral( R"(^\s*(0) (BFC (?:CERTIFY CCW|CERTIFY CW|NOCERTIFY|INVERTNEXT|CLIP|NOCLIP))\s*$)" )}; - this->commentPattern = QRegularExpression{R"(^\s*(0)\s+(.+)$)"}; + this->commentPattern = QRegularExpression{R"(^\s*(0)(\s+.*)?$)"}; } void LDrawSyntaxHighlighter::highlightBlock(const QString& text)