mirror of https://gitlab.com/basile.b/dexed.git
text completions, tweaks to partially ignore comments
This commit is contained in:
parent
a45e590521
commit
d4766a2d2a
|
|
@ -2994,6 +2994,15 @@ begin
|
||||||
r := TStringRange.create(lines[i]);
|
r := TStringRange.create(lines[i]);
|
||||||
while not r.empty do
|
while not r.empty do
|
||||||
begin
|
begin
|
||||||
|
r.popWhile([' ', #9]);
|
||||||
|
if r.startsWith('//') then
|
||||||
|
r.popUntil(#0);
|
||||||
|
if r.startsWith('/*') then
|
||||||
|
begin
|
||||||
|
r.popFrontN(2);
|
||||||
|
r.popUntil('/');
|
||||||
|
r.popFront();
|
||||||
|
end;
|
||||||
w := r.popUntil(c)^.takeWhile(a).yield;
|
w := r.popUntil(c)^.takeWhile(a).yield;
|
||||||
if (w.length >= fTextCompletionMinLength) and not h.contains(w) then
|
if (w.length >= fTextCompletionMinLength) and not h.contains(w) then
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue