This commit is contained in:
Thijs Wenker 2014-04-22 13:12:21 +02:00
parent 70ac93c20d
commit 6c89521f1d
3 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,7 @@ void ScriptHighlighting::highlightBlock(const QString& text) {
this->formatNumbers(text);
this->formatTrueFalse(text);
this->formatQoutedText(text);
this->formatComments(text);
this->formatComments(text);
}
void ScriptHighlighting::highlightKeywords(const QString& text) {
@ -54,7 +54,7 @@ void ScriptHighlighting::formatComments(const QString& text) {
start = text.indexOf(_multiLineCommentBegin, start + length);
if (end == -1) {
setCurrentBlockState(BlockStateInMultiComment);
}
}
}
int index = _singleLineComment.indexIn(text);
@ -92,4 +92,4 @@ void ScriptHighlighting::formatTrueFalse(const QString& text){
setFormat(index, length, *font);
index = _truefalseRegex.indexIn(text, index + length);
}
}
}

View file

@ -155,4 +155,4 @@ void ScriptEditorWidget::onScriptError(const QString& message) {
void ScriptEditorWidget::onScriptPrint(const QString& message) {
_scriptEditorWidgetUI->debugText->appendPlainText("> " + message);
}
}

View file

@ -197,4 +197,4 @@ void ScriptEditorWindow::updateScriptNameOrStatus() {
this->setWindowTitle("Script Editor [New script" + modifiedStar + "]");
}
}
}
}