Please add TypeScript syntax highlighting.
I wish to see TypeScript syntax support in ksyntaxhighlighting too.
Git commit a25ce26d2c6bae4932d4477b2dd7458af38a3317 by Christoph Cullmann, on behalf of Nibaldo González. Committed on 24/11/2018 at 16:24. Pushed by cullmann into branch 'master'. Add syntax highlighting for TypeScript & TypeScript React Summary: 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: https://github.com/Microsoft/TypeScript-TmLanguage The TypeScript React highlighting adds support for tags, such as XML. Also, some modifications are made to the JavaScript & JavaScript React: JavaScript: * The shebang is corrected, empty lines are no longer allowed before the shebang. * Add missing keywords. * Add rule to highlight "default" in switch conditions. * Add operator: "=>". * The "FindComments" & "FindStrings" contexts are created, which is used by typescript.xml. JavaScript React: * Fix shebang. * Fix: add Doxygen comments. * Other minor changes. Depends on D17085 Reviewers: #framework_syntax_highlighting, dhaumann, cullmann Reviewed By: #framework_syntax_highlighting, cullmann Subscribers: kwrite-devel, kde-frameworks-devel Tags: #kate, #frameworks Differential Revision: https://phabricator.kde.org/D17092 M +23 -23 autotests/folding/highlight.js.fold M +4 -4 autotests/folding/test.js.fold M +33 -31 autotests/folding/test.jsx.fold M +2 -2 autotests/folding/test.qml.fold A +50 -0 autotests/folding/test.ts.fold A +56 -0 autotests/folding/test.tsx.fold M +1 -1 autotests/html/highlight.js.html M +4 -2 autotests/html/test.jsx.html A +57 -0 autotests/html/test.ts.html C +13 -7 autotests/html/test.tsx.html [from: autotests/html/test.jsx.html - 084% similarity] M +4 -2 autotests/input/test.jsx A +50 -0 autotests/input/test.ts C +8 -2 autotests/input/test.tsx [from: autotests/input/test.jsx - 088% similarity] M +1 -1 autotests/reference/highlight.js.ref M +4 -2 autotests/reference/test.jsx.ref A +50 -0 autotests/reference/test.ts.ref C +14 -8 autotests/reference/test.tsx.ref [from: autotests/reference/test.jsx.ref - 071% similarity] M +36 -54 data/syntax/javascript-react.xml M +27 -17 data/syntax/javascript.xml C +87 -65 data/syntax/typescript-react.xml [from: data/syntax/javascript-react.xml - 071% similarity] A +1953 -0 data/syntax/typescript.xml https://commits.kde.org/syntax-highlighting/a25ce26d2c6bae4932d4477b2dd7458af38a3317