Skip to content

JS, TS: add Private Member Operator style and some optimizations

jonathan poelen requested to merge jpoelen/syntax-highlighting:up_js into master

Private Operator:

Before

this.pub
//   ^ Object Member
this.#priv
//   ^ Normal

After

this.pub
//   ^ Object Member
this.#priv
//   ^ Private Member Operator
//    ^ Object Member

Optimization:

  • 34% faster JS rendering
  • 22% faster TS rendering

Merge request reports

Loading