<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/D17092">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>TypeScript is a superset of JavaScript, therefore, it use JavaScript highlighting, adding some features and built-in classes and functions. It is based on the official TextMate grammar files: <a href="https://github.com/Microsoft/TypeScript-TmLanguage" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/Microsoft/TypeScript-TmLanguage</a></p>
<p>The TypeScript React highlighting adds support for tags, such as XML.</p>
<p>Also, some modifications are made to the JavaScript & JavaScript React:</p>
<p>JavaScript:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">The shebang is corrected, empty lines are no longer allowed before the shebang.</li>
<li class="remarkup-list-item">Add missing keywords.</li>
<li class="remarkup-list-item">Add rule to highlight "default" in switch conditions.</li>
<li class="remarkup-list-item">Add operator: "=>".</li>
<li class="remarkup-list-item">The "FindComments" & "FindStrings" contexts are created, which is used by typescript.xml.</li>
</ul>
<p>JavaScript React:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Fix shebang.</li>
<li class="remarkup-list-item">Fix: add Doxygen comments.</li>
<li class="remarkup-list-item">Other minor changes.</li>
</ul>
<p>Depends on <a href="https://phabricator.kde.org/D17085" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D17085</a></p>
<p>FEATURE: 384716</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>add-typescript</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17092">https://phabricator.kde.org/D17092</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/highlight.js.fold<br />
autotests/folding/test.js.fold<br />
autotests/folding/test.jsx.fold<br />
autotests/folding/test.qml.fold<br />
autotests/folding/test.ts.fold<br />
autotests/folding/test.tsx.fold<br />
autotests/html/highlight.js.html<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/highlight.js.ref<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/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, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>