New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code folding with Tcl language and bind command with <<event>> #1295
Comments
Folding is provided by the editing widget we use from the Scintilla project, please report the problem there and post the issue no here for tracking. |
Reported to scintilla with id: #1882 . . |
The problem is caused by the often used "exec magic" in the beginning of the file.
So Geany thinks, it is a bash script. |
Oh. Yeah Geany read shebangs and use those over the extension to determine the file type. In your example it's indeed impractical because there is actually 2 different syntax in the same file, but I'm afraid it's a little too complex to deal with, as it measn actually understanding what the shell script does. Also, the |
Then I will switch over to the |
It looks that the code folding feature misinterprets the bind event if it has an event in the format: <>.
It interprets the whole script after the "<<" characters as one block.
The Geany version is: 1.28
Screen capture of the issue:
<< characters removed:
It looks, that if a non-whitespace character is between the <<>>, then the error shows up:
The text was updated successfully, but these errors were encountered: