[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Problem with IncludeContext...
From:       Matthew Woehlke <mwoehlke () tibco ! com>
Date:       2006-10-18 22:49:34
Message-ID: eh6b1u$hru$1 () sea ! gmane ! org
[Download RAW message or body]

Matthew Woehlke wrote:
> I have a highlighter with the following:
> 
>        <!-- directive start -->
>        <context name="DetectDirective" attribute="Other Macros" ...>
>          ...
>          <IncludeRules context="DetectDirective##Roff"/>
>        </context>
> 
>        <!-- 'directive' inderection context -->
>        <context name="Directive" attribute="Identifier" ...>
>          <IncludeRules context="Directive##Roff"/>
>        </context>
> 
> The second IncludeRules works correctly (after applying the patch in 
> http://bugs.kde.org/show_bug.cgi?id=135844). The first one seems to 
> resolve correctly (no errors, kate debug shows what seems to be the 
> correct context number) but doesn't seem to be working, i.e. the rules 
> in DetectDirective##Roff are not processed. Any guesses?
> 
> I did try naming the containing context differently (in case having the 
> same name as the rules I am trying to include was the problem) with no 
> effect.

I figured out the problem... resolving the context number in 
makeContextLists() (rather than forcing handleKateHlIncludeRules() to do 
the resolution) caused only the first 'Name##Name' context to be 
resolved correctly.

New patch attached to http://bugs.kde.org/show_bug.cgi?id=135844

Can someone please review this and check it in?

-- 
Matthew
Don't use a hippo to... what was I saying?

_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic