rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

JavaScript private fields are being formatted as error #2022

Open sphinxc0re opened 5 months ago

sphinxc0re commented 5 months ago

Name of the lexer JavaScript

Code sample

export class DataPoint {
  #time = $.source($.proxy(new Date()));

  get time() {
    return $.get(this.#time);
  }
}

image

Those fields should ideally be part of the identifier