mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
Style
This commit is contained in:
parent
70ac93c20d
commit
6c89521f1d
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,4 +155,4 @@ void ScriptEditorWidget::onScriptError(const QString& message) {
|
|||
|
||||
void ScriptEditorWidget::onScriptPrint(const QString& message) {
|
||||
_scriptEditorWidgetUI->debugText->appendPlainText("> " + message);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -197,4 +197,4 @@ void ScriptEditorWindow::updateScriptNameOrStatus() {
|
|||
this->setWindowTitle("Script Editor [New script" + modifiedStar + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue