src/ldrawsyntaxhighlighter.cpp

changeset 343
4a82990affd5
parent 342
9fd7dcab6d76
equal deleted inserted replaced
342:9fd7dcab6d76 343:4a82990affd5
79 &this->point1Format, 79 &this->point1Format,
80 &this->point2Format, 80 &this->point2Format,
81 &this->point3Format, 81 &this->point3Format,
82 &this->point4Format, 82 &this->point4Format,
83 }); 83 });
84 matchRegex(this->bfcPattern, {
85 &this->lineTypeFormat,
86 &this->bfcFormat,
87 });
84 matchRegex(this->commentPattern, { 88 matchRegex(this->commentPattern, {
85 &this->lineTypeFormat, 89 &this->lineTypeFormat,
86 &this->nameFormat, 90 &this->nameFormat,
87 });
88 matchRegex(this->bfcPattern, {
89 &this->lineTypeFormat,
90 &this->bfcFormat,
91 }); 91 });
92 if (not matched) { 92 if (not matched) {
93 this->setFormat(0, text.length(), this->errorFormat); 93 this->setFormat(0, text.length(), this->errorFormat);
94 } 94 }
95 } 95 }

mercurial