[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kate/part
From: Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date: 2007-05-04 21:00:03
Message-ID: 1178312403.569253.22547.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 661206 by mwoehlke:
CCBUG: 135844
CCBUG: 144599
Try to recognize 'foo##bar' contexts in regular context redirects, i.e. in places \
that are not IncludeRules. This mostly but not entirely works, see bug 145052 and the \
FIXME added.
M +5 -2 katehighlight.cpp
--- branches/KDE/3.5/kdelibs/kate/part/katehighlight.cpp #661205:661206
@@ -2367,9 +2367,12 @@
else if ( tmpLineEndContext.contains("##"))
{
- QString tmp=tmpLineEndContext.mid(tmpLineEndContext.find("##")+2);
+ int o = tmpLineEndContext.find("##");
+ // FIXME at least with 'foo##bar'-style contexts the rules are picked up
+ // but the default attribute is not
+ QString tmp=tmpLineEndContext.mid(o+2);
if (!embeddedHls.contains(tmp)) embeddedHls.insert(tmp,KateEmbeddedHlInfo());
- unres=tmpLineEndContext;
+ unres=tmp+':'+tmpLineEndContext.left(o);
context=0;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic