Skip to content

Support to decorators in TypeScript #2819

@lacolaco

Description

@lacolaco

Motivation
I'd like to highlight my code relating Angular. Angular uses @Decorators often like below:

@Component({
  selector: 'my-app',
  template: `<div>Hello World!</div>`
})
export class AppComponent {}

A decorator is technically a function, but I want to separate its color from normal functions.

Currently, decorators are tokenized as function in language-typescript

image

Description

Adding .meta-like class to decorator name token.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions