Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172567

Summary: katepart BASH syntax highlighting problem with escaped ' in string and '" in ${}
Product: Gentoo Linux Reporter: Steve L <slong>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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