TypeScript: add private fields and type-only imports/exports, and some fixes
ClosedPublic

Authored by nibags on Feb 27 2020, 5:56 AM.

Details

Summary
  • Add private-named instance fields. Ex: x.#name;. [1]
  • Support type-only imports and exports. [2]
  • Improve the detection of conditional expressions a ? b : c. Allow multiple lines.
  • Add rules of round brackets () to correct the highlighting of pairs of brackets. [3]

[1] https://github.com/microsoft/TypeScript/pull/30829
[2] https://github.com/microsoft/TypeScript/pull/35200
[3] https://unix.stackexchange.com/questions/527268/kate-18-12-3-no-longer-shows-matching-parenthesis-for-typescript

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nibags created this revision.Feb 27 2020, 5:56 AM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptFeb 27 2020, 5:56 AM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
nibags requested review of this revision.Feb 27 2020, 5:56 AM
nibags updated this revision to Diff 76518.Feb 27 2020, 7:41 AM
  • Update TypeScript
nibags edited the summary of this revision. (Show Details)Feb 29 2020, 7:26 PM
cullmann accepted this revision.Feb 29 2020, 8:30 PM

Ok, let's merge this.
Thanks for all the work on that!

This revision is now accepted and ready to land.Feb 29 2020, 8:30 PM
This revision was automatically updated to reflect the committed changes.