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="\\['"]" />
THis is an upstream problem, not a gentoo one.
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 :)
Please follow the upstream bug report: http://bugs.kde.org/show_bug.cgi?id=103756