dhaumann added a comment.

  Could you also switch to WordDetect for the trivial cases, and set 
kateversion="5.0" ?

INLINE COMMENTS

> octave.xml:2690-2711
>          <RegExpr context="#stay" attribute="Keyword" String="\b(if)\b" 
> beginRegion="block" />
>          <RegExpr context="#stay" attribute="Keyword" String="\b(endif)\b" 
> endRegion="block" />
>          <RegExpr context="#stay" attribute="Keyword" String="\b(do)\b" 
> beginRegion="block" />
>          <RegExpr context="#stay" attribute="Keyword" String="\b(until)\b" 
> endRegion="block" />
>          <RegExpr context="#stay" attribute="Keyword" String="\b(while)\b" 
> beginRegion="block" />
>          <RegExpr context="#stay" attribute="Keyword" String="\b(endwhile)\b" 
> endRegion="block" />
>          <RegExpr context="#stay" attribute="Keyword" String="\b(function)\b" 
> beginRegion="block" />

While you are working on this, could you change all RegExpr that use the simple 
\b...\b form into a WordDetect form? See: 
https://docs.kde.org/trunk5/en/applications/katepart/highlight.html

  <WordDetect attribute=... String="function" .../>

This would be much faster than general purpose RegExps.

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D18734

To: sirgienko, #framework_syntax_highlighting
Cc: dhaumann, kwrite-devel, kde-frameworks-devel, bmortimer, hase, michaelh, 
genethomas, ngraham, bruns, demsking, cullmann, vkrause, sars

Reply via email to