mirror of https://gitlab.com/basile.b/dexed.git
gdb commander, fix getting expression within square brackets
This commit is contained in:
parent
cafd23ec4a
commit
21c143fc25
|
@ -1,3 +1,9 @@
|
||||||
|
# v3.9.8-dev
|
||||||
|
|
||||||
|
## Enhancements
|
||||||
|
|
||||||
|
- Project inspector: moved the list of configuration to a combo box over the file tree.
|
||||||
|
|
||||||
# v3.9.7
|
# v3.9.7
|
||||||
|
|
||||||
## Enhancements
|
## Enhancements
|
||||||
|
|
|
@ -1153,6 +1153,7 @@ var
|
||||||
ri: integer;
|
ri: integer;
|
||||||
li: integer = -1;
|
li: integer = -1;
|
||||||
p : integer = 1;
|
p : integer = 1;
|
||||||
|
s : integer = 1;
|
||||||
i : integer;
|
i : integer;
|
||||||
t : PLexToken;
|
t : PLexToken;
|
||||||
begin
|
begin
|
||||||
|
@ -1189,6 +1190,14 @@ begin
|
||||||
li := i+1;
|
li := i+1;
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
|
s += Byte((t^.kind = TLexTokenKind.ltkSymbol) and (t^.Data = ']'));
|
||||||
|
s -= Byte((t^.kind = TLexTokenKind.ltkSymbol) and (t^.Data = '['));
|
||||||
|
// [a.[b].c| -> a.[b].c
|
||||||
|
if s.equals(0) then
|
||||||
|
begin
|
||||||
|
li := i+1;
|
||||||
|
break;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if not li.equals(-1) and (ri >= li) then
|
if not li.equals(-1) and (ri >= li) then
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue