<table><tr><td style="">aaronpuchert created this revision.<br />aaronpuchert added reviewers: cullmann, dhaumann.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />aaronpuchert requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16338">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>After trying out the highlighting on a larger set of files and reading<br />
parts of the specification again, I've come to the conclusion that there<br />
is room for improvement. The following changes are included:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Sections don't support markup, so we highlight them as "names": \name, \keyword, \docType and \encoding.</li>
<li class="remarkup-list-item">The \email keyword nominally supports markup inside of it, but it's not clear how that actually works, so we highlight it as verbatim.</li>
<li class="remarkup-list-item">We separate R and R-like contexts. The former are actual R code and might be executed as such, but the latter will not be executed, and might not even be syntactically correct R code. So we don't use R highlighting for R-like code, and rather print it as verbatim.</li>
<li class="remarkup-list-item">We now support \verb and \figure which I forgot for some reason in the original version.</li>
<li class="remarkup-list-item">We added some markup support inside of R code. Note that because we also use R highlighting, the markup only works on the top level.</li>
<li class="remarkup-list-item">Error recovery wasn't any good. When expecting an argument and not getting it, we now back off after highlighting whatever comes before the next opening brace. Otherwise it's just to noisy when writing code.  We also highlight extra spaces before <tt style="background: #ebebeb; font-size: 13px;">{</tt> as erroneous.</li>
<li class="remarkup-list-item">Spell checking makes no sense for R source, item names and errors.</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>improve-rdoc</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16338">https://phabricator.kde.org/D16338</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/test.Rd.fold<br />
autotests/html/test.Rd.html<br />
autotests/input/test.Rd<br />
autotests/reference/test.Rd.ref<br />
data/syntax/rdoc.xml</div></div></div><br /><div><strong>To: </strong>aaronpuchert, cullmann, dhaumann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, Framework: Syntax Highlighting, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>