<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/D19249">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Add more examples in the PHP test units, with the highlighting within code of <br />
CSS, JavaScript, JavaScript React, TypeScript and MustacheJS (according to <a href="https://phabricator.kde.org/D18951" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;">D18951</a>).</p>

<p>The TypeScript highlighting is also updated.</p>

<h3 class="remarkup-header">Changes:</h3>

<p><strong>TypeScript:</strong></p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Fixes keywords delimiters (remove: +-).</li>
<li class="remarkup-list-item">Add support to bigint (example: 123n).</li>
<li class="remarkup-list-item">Add "is" keyword (for type guards).</li>
<li class="remarkup-list-item">Don't highlight some keywords when they are objects.</li>
<li class="remarkup-list-item">Small improvements in the highlighting of types.</li>
<li class="remarkup-list-item">Don't highlight regular expressions after "]" and ")".</li>
</ul>

<p><strong>TypeScript React:</strong></p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Don't highlight tags within declarations of types, variables, classes and interfaces.</li>
<li class="remarkup-list-item">Fix tags at the beginning of substitutions in templates.</li>
<li class="remarkup-list-item">Adapt to modifications of "typescript.xml".</li>
<li class="remarkup-list-item">Reorder part of the code.</li>
</ul>

<p><strong>JavaScript React:</strong></p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Don't highlight tags within declarations of variables, classes and interfaces.</li>
<li class="remarkup-list-item">Fix tags at the beginning of substitutions in templates.</li>
<li class="remarkup-list-item">Reorder part of the code.</li>
</ul>

<p><strong>JavaScript:</strong></p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Move highlighting of region markers to the "FindComments" context.</li>
<li class="remarkup-list-item">Fix: highlight comments after "<".</li>
</ul>

<p>Also, examples have been added in the test files.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>update-ts</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19249">https://phabricator.kde.org/D19249</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/highlight.js.fold<br />
autotests/folding/highlight.php.fold<br />
autotests/folding/test.js.fold<br />
autotests/folding/test.jsx.fold<br />
autotests/folding/test.ts.fold<br />
autotests/folding/test.tsx.fold<br />
autotests/html/highlight.php.html<br />
autotests/html/test.jsx.html<br />
autotests/html/test.ts.html<br />
autotests/html/test.tsx.html<br />
autotests/input/highlight.php<br />
autotests/input/test.jsx<br />
autotests/input/test.ts<br />
autotests/input/test.tsx<br />
autotests/reference/highlight.js.ref<br />
autotests/reference/highlight.php.ref<br />
autotests/reference/test.htm.ref<br />
autotests/reference/test.js.ref<br />
autotests/reference/test.jsx.ref<br />
autotests/reference/test.qml.ref<br />
autotests/reference/test.ts.ref<br />
autotests/reference/test.tsx.ref<br />
data/syntax/javascript-react.xml<br />
data/syntax/javascript.xml<br />
data/syntax/typescript-react.xml<br />
data/syntax/typescript.xml</div></div></div><br /><div><strong>To: </strong>nibags, Framework: Syntax Highlighting, dhaumann, cullmann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>