mirror of
https://github.com/moparisthebest/Simba
synced 2024-12-22 23:38:50 -05:00
Instead of only showing code completion/hints with identifiers and symbols, I changed to to show it if it's not in a string/comment/directive). I also fixed a little bug in codehints for functions surrounded by brackets.
This commit is contained in:
parent
dfe3b23319
commit
9709bb76b9
@ -302,7 +302,7 @@ var
|
||||
dd: TDeclaration;
|
||||
begin
|
||||
if (Command = ecCodeCompletion) and ((not SynEdit.GetHighlighterAttriAtRowCol(SynEdit.CaretXY, s, Attri)) or
|
||||
((Attri.Name = SYNS_AttrIdentifier) or (Attri.name = SYNS_AttrSymbol))) then
|
||||
((Attri.Name <> SYNS_AttrComment) and (Attri.name <> SYNS_AttrString) and (Attri.name <> SYNS_AttrDirective))) then
|
||||
begin
|
||||
{form1.FunctionListShown(True);
|
||||
with form1.frmFunctionList do
|
||||
@ -404,6 +404,7 @@ begin
|
||||
mp.Run(ms, nil, Synedit.SelStart + (ep - Synedit.CaretX) - 1,true);
|
||||
bcc := 1;bck := 0;cc := 0;
|
||||
s := mp.GetExpressionAtPos(bcc, bck, cc,posi, true);
|
||||
WriteLn('is it '+s+'?');
|
||||
bracketpos := posi + length(s);
|
||||
if pos('(',s) > 0 then
|
||||
begin;
|
||||
|
Loading…
Reference in New Issue
Block a user