<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/D17883">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p><strong>Changes:</strong></p>
<p>TypeScript:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Don't highlight built-in classes as functions. For example:</li>
</ul>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">let a = Array(12);</pre></div>
<ul class="remarkup-list">
<li class="remarkup-list-item">Fix highlighting of floating points: the rules for detecting floating point aren't in correct order, so numbers like <tt style="background: #ebebeb; font-size: 13px;">1.E+3</tt> aren't highlighted correctly.</li>
<li class="remarkup-list-item">Improved type detection, for example:</li>
</ul>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">hello<string>
let d: string = "hello";</pre></div>
<p>TypeScript React:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Adapt to the the changes of <tt style="background: #ebebeb; font-size: 13px;">typescript.xml</tt>.</li>
</ul>
<p>TypeScript/JavaScript React:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Allow type assertion in the tag name, for example: <tt style="background: #ebebeb; font-size: 13px;"><C<number> /></tt></li>
<li class="remarkup-list-item">Allow tags after the keywords <tt style="background: #ebebeb; font-size: 13px;">await</tt> & <tt style="background: #ebebeb; font-size: 13px;">yield</tt>.</li>
<li class="remarkup-list-item">Allow empty tags: <tt style="background: #ebebeb; font-size: 13px;"><></></tt>.</li>
<li class="remarkup-list-item">Allow Non-ASCII characters in component tags.</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>update-typescript</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17883">https://phabricator.kde.org/D17883</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/test.jsx.fold<br />
autotests/folding/test.ts.fold<br />
autotests/folding/test.tsx.fold<br />
autotests/html/test.jsx.html<br />
autotests/html/test.ts.html<br />
autotests/html/test.tsx.html<br />
autotests/input/test.jsx<br />
autotests/input/test.ts<br />
autotests/input/test.tsx<br />
autotests/reference/test.jsx.ref<br />
autotests/reference/test.ts.ref<br />
autotests/reference/test.tsx.ref<br />
data/syntax/javascript-react.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, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>