- fix: symbol completion for '<>' in the preprocessor line not work

This commit is contained in:
Roy Qu 2021-12-20 13:00:47 +08:00
parent 6f73ccff2f
commit 7687fc1cb7
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Version 0.11.4 For Dev-C++ 7 Beta
- fix: auto indent processing error when input '{' in the middle of if statement - fix: auto indent processing error when input '{' in the middle of if statement
- fix: left and right gutter offset settings not correctly saved - fix: left and right gutter offset settings not correctly saved
- enhancement: use svg icons for editor gutter, and they can zoom with font now - enhancement: use svg icons for editor gutter, and they can zoom with font now
- fix: symbol completion for '<>' in the preprocessor line not work
Version 0.11.3 For Dev-C++ 7 Beta Version 0.11.3 For Dev-C++ 7 Beta
- fix: use pixel size for fonts, to fit different dpi in multiple displays - fix: use pixel size for fonts, to fit different dpi in multiple displays

View File

@ -1916,7 +1916,7 @@ bool Editor::handleSymbolCompletion(QChar key)
if ((tokenType == SynHighlighterTokenType::String) && (!tokenFinished) if ((tokenType == SynHighlighterTokenType::String) && (!tokenFinished)
&& (key!='\'') && (key!='\"') && (key!='(') && (key!=')')) && (key!='\'') && (key!='\"') && (key!='(') && (key!=')'))
return false; return false;
if (( key=='<' || key =='>') && (tokenType != SynHighlighterTokenType::PreprocessDirective)) if (( key=='<' || key =='>') && (mParser && !mParser->isIncludeLine(lineText())))
return false; return false;
if ((key == '\'') && (Attr->name() == "SYNS_AttrNumber")) if ((key == '\'') && (Attr->name() == "SYNS_AttrNumber"))
return false; return false;