mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-16 05:55:06 +03:00
eepp: Allow to unselect selection from UIAbstractView.
ecode: Updated icons ttf. Completed implementation of Build Output, now it will list Issues found when compiling in the Issues section inside Build. Tentative fix in LSPDocumentClient when parsing semantic highlight. Improved Features Health GUI.
This commit is contained in:
@@ -285,25 +285,25 @@ void LSPDocumentClient::highlight() {
|
||||
start = deltaStart;
|
||||
}
|
||||
|
||||
auto& line = tokenizerLines[currentLine];
|
||||
auto* line = &tokenizerLines[currentLine];
|
||||
if ( type >= 0 && type < (int)caps.legend.tokenTypes.size() ) {
|
||||
const auto& ltype = caps.legend.tokenTypes[type];
|
||||
line.tokens.push_back(
|
||||
line->tokens.push_back(
|
||||
{ semanticTokenTypeToSyntaxType( ltype, mDoc->getSyntaxDefinition() ), start,
|
||||
len } );
|
||||
} else {
|
||||
line.tokens.push_back( { "normal", start, len } );
|
||||
line->tokens.push_back( { "normal", start, len } );
|
||||
}
|
||||
line.hash = mDoc->line( currentLine ).getHash();
|
||||
line.updateSignature();
|
||||
line->hash = mDoc->line( currentLine ).getHash();
|
||||
line->updateSignature();
|
||||
|
||||
auto curSignature = mDoc->getHighlighter()->getTokenizedLineSignature( lastLine );
|
||||
if ( lastLinePtr && lastLinePtr->signature == curSignature ) {
|
||||
if ( lastLine != currentLine && lastLinePtr && lastLinePtr->signature == curSignature ) {
|
||||
tokenizerLines.erase( lastLine );
|
||||
}
|
||||
|
||||
lastLine = currentLine;
|
||||
lastLinePtr = &line;
|
||||
lastLinePtr = line;
|
||||
}
|
||||
|
||||
diff = clock.getElapsedTime();
|
||||
|
||||
Reference in New Issue
Block a user