Tracker: Bugs

5 Shell script single quote incorrectly highlighted - ID: 3512197
Last Update: Settings changed ( colombanw )

Problem:
If a singly-quoted string in a shell script ends with a backslash, everything is highlighted as a quote until another single quote is encountered.

Probably cause:
Syntax highlighter is interpreting escaped characters inside of single quotes when it should not.

To reproduce:
Open "test.sh" with geany.
Add the following line to test.sh: echo 'test \' this is bad!
"this is bad!" will be highlighted, but it should not be.

Environment:
OS: Ubuntu 10.04 Server
Geany: 1.22 (built from git on 3/26)
GTK: 2.20.1


Manbeardo ( Manbeardo ) - 2012-03-27 21:18:39 PDT

5

Closed

Fixed

Nobody/Anonymous

Filetypes

v1.23

Public


Comments ( 4 )

Date: 2012-09-01 09:49:37 PDT
Sender: colombanwProject Admin

Looks like Scintilla applied the fix, at least it works for me now :)


Date: 2012-03-29 11:41:34 PDT
Sender: manbeardo

I didn't realize that the CVS repo was out of date. I went ahead and pulled
from hg, applied a suggested fix along with my patch and submitted the new
patch to scintilla.


Date: 2012-03-27 23:46:29 PDT
Sender: codebrainzProject Admin

+1 for figuring it out yourself, +10 for submitting a patch upstream, -1
because I don't think Scintilla uses CVS anymore :(


Date: 2012-03-27 23:01:40 PDT
Sender: Manbeardo

I tracked down the problem in Scintilla and filed a bug report with an
attached patch.

Link:
https://sourceforge.net/tracker/index.php?func=detail&aid=3512208&group_id=2439&atid=102439#


Attached File ( 1 )

Filename Description Download
Screenshot.png Picture of the bug in action Download

Changes ( 7 )

Field Old Value Date By
artifact_group_id v1.22 2012-09-17 14:52:37 PDT colombanw
artifact_group_id None 2012-09-17 14:52:30 PDT colombanw
resolution_id None 2012-09-01 09:49:37 PDT colombanw
close_date - 2012-09-01 09:49:37 PDT colombanw
allow_comments 1 2012-09-01 09:49:37 PDT colombanw
status_id Open 2012-09-01 09:49:37 PDT colombanw
File Added 439625: Screenshot.png 2012-03-27 21:18:40 PDT Manbeardo