<table><tr><td style="">nibags created this revision.<br />nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />nibags 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/D23691">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>BUG: 411508</p>

<ul class="remarkup-list">
<li class="remarkup-list-item phantom-item"><ol class="remarkup-list">
<li class="remarkup-list-item">ISO C ++</li>
</ol></li>
<li class="remarkup-list-item">Add folding for digraphs <tt style="background: #ebebeb; font-size: 13px;"><%</tt>, <tt style="background: #ebebeb; font-size: 13px;">%></tt>, <tt style="background: #ebebeb; font-size: 13px;"><:</tt> and <tt style="background: #ebebeb; font-size: 13px;">:></tt>, which are equivalent to <tt style="background: #ebebeb; font-size: 13px;">{</tt>, <tt style="background: #ebebeb; font-size: 13px;">}</tt>, <tt style="background: #ebebeb; font-size: 13px;">[</tt> and <tt style="background: #ebebeb; font-size: 13px;">]</tt>.</li>
<li class="remarkup-list-item">Fix the highlight of <tt style="background: #ebebeb; font-size: 13px;">%:</tt> in preprocessor, for example, <tt style="background: #ebebeb; font-size: 13px;">%:include <some></tt>.</li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item phantom-item"><ol class="remarkup-list">
<li class="remarkup-list-item">C</li>
</ol></li>
<li class="remarkup-list-item">Add folding for digraphs <tt style="background: #ebebeb; font-size: 13px;"><%</tt> and <tt style="background: #ebebeb; font-size: 13px;">%></tt>, which are equivalent to <tt style="background: #ebebeb; font-size: 13px;">{</tt> and <tt style="background: #ebebeb; font-size: 13px;">}</tt>.</li>
<li class="remarkup-list-item">Add <tt style="background: #ebebeb; font-size: 13px;">%:</tt> equivalent to <tt style="background: #ebebeb; font-size: 13px;">#</tt> in preprocessor.</li>
</ul>

<p>Trigraphs were removed in C++17 and are supported in C (if activated in the compiler), but are almost obsolete. That's why I decided not to add them. Although if you wish I can add folding to <tt style="background: #ebebeb; font-size: 13px;">??<</tt> and <tt style="background: #ebebeb; font-size: 13px;">??></tt>, which are equivalent to <tt style="background: #ebebeb; font-size: 13px;">{</tt> and <tt style="background: #ebebeb; font-size: 13px;">}</tt>.</p>

<p><strong>More:</strong></p>

<ul class="remarkup-list">
<li class="remarkup-list-item"><a href="https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C" class="remarkup-link" target="_blank" rel="noreferrer">https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C</a></li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>cpp-digraphs</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23691">https://phabricator.kde.org/D23691</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/highlight.cpp.fold<br />
autotests/folding/test.c.fold<br />
autotests/html/highlight.cpp.html<br />
autotests/html/test.c.html<br />
autotests/input/highlight.cpp<br />
autotests/input/test.c<br />
autotests/reference/highlight.cpp.ref<br />
autotests/reference/test.c.ref<br />
data/syntax/c.xml<br />
data/syntax/isocpp.xml</div></div></div><br /><div><strong>To: </strong>nibags, Framework: Syntax Highlighting, dhaumann, cullmann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>