<p>Sample Code in Bash below.<br>
The problem is with <<EOL.<br>
All text after the <<EOL is green and a fold point is created.<br>
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.</p>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1063">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ9SMO1Evz7KwGlp_KppuUUl2hSDiks5qKGuAgaJpZM4IyVBH">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJy1jI8x2xgjNieuSZ6AfzRaQHFvTks5qKGuAgaJpZM4IyVBH.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1063"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>