Add syntax-highlighting for RDoc (R documentation)
ClosedPublic

Authored by aaronpuchert on Aug 5 2018, 9:21 PM.

Details

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.

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
aaronpuchert created this revision.Aug 5 2018, 9:21 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptAug 5 2018, 9:21 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
aaronpuchert requested review of this revision.Aug 5 2018, 9:21 PM
cullmann accepted this revision.Aug 12 2018, 9:49 AM

Looks ok, thanks for the contribution.

This revision is now accepted and ready to land.Aug 12 2018, 9:49 AM
This revision was automatically updated to reflect the committed changes.