I don't know if this has been addressed before.
I'm using UE v11.00a+.
UE doesn't match braces correctly when I am iterating over the indexes of an array in Perl.
Instead UE incorrectly matches the brace (if any)
before the loop when searching from the closing brace of the for loop
and matches nothing when searching from the opening brace of the for loop.
Example:
It doesn't even match the parens of the list correctly - (0..$#list)
This obviously has to do with the hashmark (#) in the list
because matching is correct when iterating over a list of given numbers
or over a list itself.
e.g.
for (0..9) {}
for (@list) {}
Is anybody in the know of a workaround?
Thanks in advance!
I'm using UE v11.00a+.
UE doesn't match braces correctly when I am iterating over the indexes of an array in Perl.
Instead UE incorrectly matches the brace (if any)
before the loop when searching from the closing brace of the for loop
and matches nothing when searching from the opening brace of the for loop.
Example:
Code: Select all
if ($x) {
for (0..$#list) {
# do something
}
}
This obviously has to do with the hashmark (#) in the list
because matching is correct when iterating over a list of given numbers
or over a list itself.
e.g.
for (0..9) {}
for (@list) {}
Is anybody in the know of a workaround?
Thanks in advance!