mirror of
https://github.com/moparisthebest/Simba
synced 2025-01-30 23:00:18 -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 which involves functions surrounded by brackets (not sure if this is the second time I commit this? =D)
This commit is contained in:
parent
9709bb76b9
commit
9d67a02b99
@ -596,7 +596,7 @@ begin
|
||||
Dec(StartPos);
|
||||
if not ((LastWasDot and (s[StartPos] in ['a'..'z', 'A'..'Z', '0'..'9', '_', ']', ')'])) or ((not LastWasDot) and (s[StartPos] = '.'))) then
|
||||
begin
|
||||
StartPos := i;
|
||||
StartPos := i - BracketCount - BraceCount;
|
||||
Break;
|
||||
end;
|
||||
Inc(StartPos);
|
||||
@ -636,10 +636,11 @@ begin
|
||||
Dec(StartPos, BracketCount);
|
||||
Break;
|
||||
end;
|
||||
|
||||
LastWasDot := False;
|
||||
Dec(StartPos);
|
||||
end;
|
||||
sp := startpos + d.StartPos;
|
||||
sp := StartPos + d.StartPos;
|
||||
Result := CompressWhiteSpace(Copy(s, StartPos + 1, EndPos - StartPos));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user