mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
CodeEditor fixed
This commit is contained in:
@@ -110,7 +110,11 @@ void ScriptHighlighter::highlightBlock(const QString& text)
|
||||
}
|
||||
buffer.clear();
|
||||
buffer += currentChar;
|
||||
|
||||
break;
|
||||
case String:
|
||||
case String2:
|
||||
buffer.clear();
|
||||
buffer += currentChar;
|
||||
break;
|
||||
case MayBeKeyWord:
|
||||
case MayBeNumber:
|
||||
@@ -160,17 +164,10 @@ void ScriptHighlighter::highlightBlock(const QString& text)
|
||||
|
||||
TextBlockData *data = new TextBlockData;
|
||||
|
||||
|
||||
for (int i = 0; i < PARENHEIS_COUNT; ++i){
|
||||
createParentheisisInfo(parenthesisCharacters[LeftParenthesis][i].toLatin1(), data, text);
|
||||
createParentheisisInfo(parenthesisCharacters[RightParenthesis][i].toLatin1(), data, text);
|
||||
}
|
||||
// createParentheisisInfo('(', data, text);
|
||||
// createParentheisisInfo(')', data, text);
|
||||
// createParentheisisInfo('{', data, text);
|
||||
// createParentheisisInfo('}', data, text);
|
||||
// createParentheisisInfo('[', data, text);
|
||||
// createParentheisisInfo(']', data, text);
|
||||
|
||||
setCurrentBlockUserData(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user