TODO/NOTE/... are isCode TRUE

meik michalke meik.michalke at uni-duesseldorf.de
Sat Sep 1 23:37:23 BST 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20180902/2856d770/attachment.sig>


More information about the rkward-devel mailing list