- fix: symbol completion for '<>' in the preprocessor line not work
This commit is contained in:
parent
6f73ccff2f
commit
7687fc1cb7
1
NEWS.md
1
NEWS.md
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue