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 Add more examples in the PHP test units, with the highlighting within code of CSS, JavaScript, JavaScript React, TypeScript and MustacheJS (according to D18951 <https://phabricator.kde.org/D18951>). The TypeScript highlighting is also updated. Changes: -------- **TypeScript:** - Fixes keywords delimiters (remove: +-). - Add support to bigint (example: 123n). - Add "is" keyword (for type guards). - Don't highlight some keywords when they are objects. - Small improvements in the highlighting of types. - Don't highlight regular expressions after "]" and ")". **TypeScript React:** - Don't highlight tags within declarations of types, variables, classes and interfaces. - Fix tags at the beginning of substitutions in templates. - Adapt to modifications of "typescript.xml". - Reorder part of the code. **JavaScript React:** - Don't highlight tags within declarations of variables, classes and interfaces. - Fix tags at the beginning of substitutions in templates. - Reorder part of the code. **JavaScript:** - Move highlighting of region markers to the "FindComments" context. - Fix: highlight comments after "<". Also, examples have been added in the test files. REPOSITORY R216 Syntax Highlighting BRANCH update-ts REVISION DETAIL https://phabricator.kde.org/D19249 AFFECTED FILES autotests/folding/highlight.js.fold autotests/folding/highlight.php.fold autotests/folding/test.js.fold autotests/folding/test.jsx.fold autotests/folding/test.ts.fold autotests/folding/test.tsx.fold autotests/html/highlight.php.html autotests/html/test.jsx.html autotests/html/test.ts.html autotests/html/test.tsx.html autotests/input/highlight.php autotests/input/test.jsx autotests/input/test.ts autotests/input/test.tsx autotests/reference/highlight.js.ref autotests/reference/highlight.php.ref autotests/reference/test.htm.ref autotests/reference/test.js.ref autotests/reference/test.jsx.ref autotests/reference/test.qml.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, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann