nibags created this revision. nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann. Herald added projects: Kate, Frameworks. Herald added subscribers: kde-frameworks-devel, kwrite-devel. nibags requested review of this revision.
REVISION 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 <https://phabricator.kde.org/D17085> FEATURE: 384716 REPOSITORY R216 Syntax Highlighting BRANCH add-typescript REVISION DETAIL https://phabricator.kde.org/D17092 AFFECTED FILES autotests/folding/highlight.js.fold autotests/folding/test.js.fold autotests/folding/test.jsx.fold autotests/folding/test.qml.fold autotests/folding/test.ts.fold autotests/folding/test.tsx.fold autotests/html/highlight.js.html autotests/html/test.jsx.html autotests/html/test.ts.html autotests/html/test.tsx.html autotests/input/test.jsx autotests/input/test.ts autotests/input/test.tsx autotests/reference/highlight.js.ref autotests/reference/test.jsx.ref autotests/reference/test.ts.ref autotests/reference/test.tsx.ref data/syntax/javascript-react.xml data/syntax/javascript.xml data/syntax/typescript-react.xml data/syntax/typescript.xml To: nibags, #framework_syntax_highlighting, dhaumann, cullmann Cc: kwrite-devel, kde-frameworks-devel, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann