D18734: Update octave.xml to Octave 4.2.0
Dominik Haumann
noreply at phabricator.kde.org
Mon Feb 4 21:47:29 GMT 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190204/7406eaab/attachment.html>
More information about the KWrite-Devel
mailing list