Add syntax-highlighting for RDoc (R documentation)

Authored by aaronpuchert on Aug 13 2018, 10:44 AM.

Description

Add syntax-highlighting for RDoc (R documentation)

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.

Reviewers: dhaumann, cullmann

Reviewed By: cullmann

Subscribers: Framework: Syntax Highlighting, kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D14639

Details

Committed
aaronpuchertAug 13 2018, 10:44 AM
Reviewer
cullmann
Differential Revision
D14639: Add syntax-highlighting for RDoc (R documentation)
Parents
R216:42259b660801: GIT_SILENT: Add note about KF6 cleanup
Branches
Unknown
Tags
Unknown