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

Multiple modifiers in constructor shorthand are not highlighted #365

Closed
Jessidhia opened this issue Nov 21, 2016 · 1 comment
Closed

Multiple modifiers in constructor shorthand are not highlighted #365

Jessidhia opened this issue Nov 21, 2016 · 1 comment

Comments

@Jessidhia
Copy link

Multiple modifiers, like private readonly, public readonly, etc, are not correctly highlighted. Only the first of the modifiers is highlighted; the other words are highlighted as identifiers:

class Renamer {
  constructor (private readonly srcName: string, private readonly target: string, readonly copy: boolean = false) {}
}
@Jessidhia
Copy link
Author

It looks like it's supposed to be parsed, but the order is wrong? readonly private is a syntax error.

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

No branches or pull requests

1 participant