https://bugs.kde.org/show_bug.cgi?id=430668

mixo <mixosaurus+bugs...@pm.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mixosaurus+bugs...@pm.me

--- Comment #2 from mixo <mixosaurus+bugs...@pm.me> ---
The update broke a few more things:

1. binary operators: apart from #431036, it interprets all code after "||" as
string (red):

if [[ "$foo" ]] || [[ "$bar" ]]; then ...
^----------------- ^---------------------
fine               red=string

2. backticks: #431036

3. "translation strings" are interpreted too greedy: $"foobar..." marks the
rest of the file as string (red), i.e. it does not end with the first double
quote.

4. binary operators in "if" break functions: the function body is interpreted
fine but the closing "}" is underlined in red

bla() {
    if false && true; then
        echo
    fi
}
^-- underlined

This also happens without the "if" keyword:

bla() {
    [[ cond ]] && foo
}
^-- underlined

5. If I move the "[[ cond ]] && foo" line from 4. outside the function the same
as in 1. and 3. happens. Weirdly enough, this fixed itself after I moved the
line a few times in and out - but then it happened again. I then tried the same
in a different script where it worked with certain functions but failed with
others.

bla() {
    [[ cond ]] && foo
}
^-- underlined (same example as 4.)

----

[[ cond ]] && foo
              ^.... from this point everything is red
bla() {
    echo
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to