1
0
mirror of https://github.com/moparisthebest/Simba synced 2025-02-07 10:40:19 -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:
Niels 2010-04-07 18:52:22 +02:00
parent 9709bb76b9
commit 9d67a02b99

View File

@ -596,7 +596,7 @@ begin
Dec(StartPos); Dec(StartPos);
if not ((LastWasDot and (s[StartPos] in ['a'..'z', 'A'..'Z', '0'..'9', '_', ']', ')'])) or ((not LastWasDot) and (s[StartPos] = '.'))) then if not ((LastWasDot and (s[StartPos] in ['a'..'z', 'A'..'Z', '0'..'9', '_', ']', ')'])) or ((not LastWasDot) and (s[StartPos] = '.'))) then
begin begin
StartPos := i; StartPos := i - BracketCount - BraceCount;
Break; Break;
end; end;
Inc(StartPos); Inc(StartPos);
@ -636,10 +636,11 @@ begin
Dec(StartPos, BracketCount); Dec(StartPos, BracketCount);
Break; Break;
end; end;
LastWasDot := False; LastWasDot := False;
Dec(StartPos); Dec(StartPos);
end; end;
sp := startpos + d.StartPos; sp := StartPos + d.StartPos;
Result := CompressWhiteSpace(Copy(s, StartPos + 1, EndPos - StartPos)); Result := CompressWhiteSpace(Copy(s, StartPos + 1, EndPos - StartPos));
end; end;