TODO/NOTE/... are isCode TRUE

Pierre de Villemereuil pierre.de.villemereuil at mailoo.org
Tue Sep 4 15:09:08 BST 2018


Hi Meik,

Hm... So, you're saying that, contrary to "Headlines", the "Alerts" like TODO, NOTE, etc. are not defined in RKWard code, but in Kate (or KTextEdit)?

That means more investigation. I'll follow up on the Kate side when I'll have some time.

Cheers,
Pierre.

Le dimanche 2 septembre 2018, 00:37:23 CEST meik michalke a écrit :
> hi pierre,
> 
> Am Samstag, 1. September 2018, 18:52:53 CEST schrieb Pierre de Villemereuil:
> > On the same note as for "headline":
> > https://mail.kde.org/pipermail/rkward-devel/2018-April/005013.html
> > the comment keywords TODO and NOTE (are there others?) are reported as TRUE
> > using the isCode javascript function of KTextEdit.
> > 
> > As for headlines, those keywords being comments, I don't think they should
> > be considered code. Is this the same bug?
> 
> i suspect this to be the section to blame:
> 
>   <context attribute="Headline" lineEndContext="#pop" name="Headline">
>     <IncludeRules context="##Alerts" />
>   </context>
>   <context attribute="Comment" lineEndContext="#pop" name="Comment">
>     <IncludeRules context="##Alerts" />
>   </context>
> 
> the highlighting for TODO, NOTE etc. is not defined in r.xml but imported from 
> the alerts.xml rules of kate.
> 
> later on:
> 
>   <comments>
>     <comment name="singleLine" start="#" end=""/>
>   </comments>
> 
> i.e., as far as i understand it, all lines starting with "#" are to be taken 
> as comments. if they are seen as code, i'm not sure how that can be addressed 
> from within RKWard?
> 
> 
> viele grüße :: m.eik
> 
> -- 
>   dipl. psych. meik michalke
>   institut f"ur experimentelle psychologie
>   abt. f"ur diagnostik und differentielle psychologie
>   heinrich-heine-universit"at d-40204 d"usseldorf




More information about the rkward-devel mailing list