D14639: Add syntax-highlighting for RDoc (R documentation)
Aaron Puchert
noreply at phabricator.kde.org
Sun Aug 5 22:21:12 BST 2018
aaronpuchert created this revision.
aaronpuchert added reviewers: dhaumann, cullmann.
Restricted Application added projects: Kate, Frameworks.
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel.
aaronpuchert requested review of this revision.
REVISION SUMMARY
The R documentation language follows LaTeX-like syntax with occasional
snippets of R code. Builtin keywords and user-defined macros both begin
with a backlash, but we try to distinguish them to highlight arguments
according to their type.
For macros we can't know the argument types (LaTeX/R-like or verbatim),
so we just assume the type is the same as that of the surrounding code.
REPOSITORY
R216 Syntax Highlighting
BRANCH
rdoc
REVISION DETAIL
https://phabricator.kde.org/D14639
AFFECTED FILES
autotests/folding/test.Rd.fold
autotests/html/test.Rd.html
autotests/input/test.Rd
autotests/reference/test.Rd.ref
data/syntax/rdoc.xml
To: aaronpuchert, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180805/03f84e20/attachment.html>
More information about the KWrite-Devel
mailing list