Sample Code in Bash below.
The problem is with <<EOL.
All text after the <<EOL is green and a fold point is created.
The fold point and green text only ends if I put EOL at the beginning of a 
line. If there is any space or tab geany does not register the EOL and 
continues to use green text.

function myFunction() {
        echo "This is my function"
        if [ -n "${LEGACY+1}" ]; then
                OUTPUT="command1\n"
                OUTPUT+="command2"
                someinput_program <<EOL
                        $(echo -e $OUTPUT)
                        quit
                EOL
        else
                OUTPUT="command1 with command2"
                anotherinput_program $OUTPUT
        fi
        echo -e $OUTPUT
}

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1063

Reply via email to