Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add private field modifier to classes #1237

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vieira
Copy link
Contributor

@vieira vieira commented May 20, 2021

Add syntax highlighting to the private field modifier # as defined in tc39/proposal-class-fields, tc39/proposal-static-class-features and tc39/proposal-private-methods.

export class JSDOM {
  static #red = "#ff0000";
  #createdBy;
  
  #registerWithRegistry() {
    // ... elided ...
  }

  static #finalizeFactoryCreated(jsdom, factoryName) {
    jsdom.#createdBy = factoryName;
    jsdom.#registerWithRegistry(registry);
    return jsdom;
  }
}

Add syntax highlighting to the private field modifier `#` as defined in tc39/proposal-class-fields, tc39/proposal-static-class-features and tc39/proposal-private-methods
mantoni added a commit to mantoni/vim-javascript that referenced this pull request May 28, 2024
mantoni added a commit to mantoni/vim-javascript that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant