Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172567 - katepart BASH syntax highlighting problem with escaped ' in string and '" in ${}
Summary: katepart BASH syntax highlighting problem with escaped ' in string and '" in ${}
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-28 15:21 UTC by Steve L
Modified: 2007-04-23 17:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve L 2007-03-28 15:21:44 UTC
If you enter a single-quoted string you cannot escape a single-quote. ie a='\'' breaks syntax highlighting.and all subsequent lines appear incorrectly.
Further, within a ${} var brace, escaped quoting does not happen. You can see this by opening /usr/portage/eclass/linux-info.eclass. Lines 310 on are wrongly highlighted.

Reproducible: Always




The first problem can be fixed by adding the following line to the bash.xml file in /usr/kde/share/apps/katepart/syntax at line 685, within StringSQ:
<Detect2Chars attribute="String Escape" context="#stay" char="\" char1="'"/>
The second problem can be fixed by adding this at line 705 within VarBrace:
<RegExpr attribute="String Escape" context="#stay" String="\\['&quot;]" />
Comment 1 Dan 2007-04-06 16:36:42 UTC
THis is an upstream problem, not a gentoo one.
Comment 2 Steve L 2007-04-07 22:57:11 UTC
Thanks, carlo(?) raised it already on a similar bug: http://bugs.kde.org/show_bug.cgi?id=103756
(I had just created an account to file a bug too.) Thankfully the guy who wrote the syntax highlighting file is contributing to that discussion, so maybe we can finally get this sorted out :)
Comment 3 Wulf Krueger (RETIRED) gentoo-dev 2007-04-23 17:16:44 UTC
Please follow the upstream bug report: 
http://bugs.kde.org/show_bug.cgi?id=103756