Skip to content

fix(fontlock): only re-fontify method calls with reserved words #175

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

Merged

Conversation

Fuco1
Copy link
Contributor

@Fuco1 Fuco1 commented Aug 5, 2022

Functions can not be called after a reserved word such as if or
delete, however methods can. Only re-apply fontification on
methods.

Fixes #174

Functions can not be called after a reserved word such as `if` or
`delete`, however methods can.  Only re-apply fontification on
methods.
@josteink josteink merged commit d1123e0 into emacs-typescript:master Aug 5, 2022
@josteink
Copy link
Member

josteink commented Aug 5, 2022

Thanks! It has better test coverage and build is still green.

Consider it merged!

@Fuco1
Copy link
Contributor Author

Fuco1 commented Aug 5, 2022

For the future reference: this patch basically undid my previous "fix" and only applied it on methods, as it makes no sense on functions since those are protected by typescript itself (so nobody would write such code).

@Fuco1 Fuco1 deleted the bugfix/re-fontify-only-methods branch August 6, 2022 08:16
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.

Incorrect highlighting of keywords on latest commit
2 participants