Skip to content

feat(fontlock): fontify arrow fn arguments #170

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
merged 3 commits into from
Jul 30, 2022

Conversation

Fuco1
Copy link
Contributor

@Fuco1 Fuco1 commented Jul 8, 2022

Fontify the variables in arrow function argument lists.

Probably won't work 100% because parsing with regexps is hard but 80/20 applies.

Before

image

After

image

@Fuco1
Copy link
Contributor Author

Fuco1 commented Jul 9, 2022

I got around to do class methods as well

image

Also made sure keywords are still fontified as variables when in variable context

image

@Fuco1 Fuco1 force-pushed the feature/fontify-arrow-fn-args branch from 4e709df to d6fa23f Compare July 9, 2022 11:42
The function font-lock-fontify-buffer is only for interactive use.
@Fuco1 Fuco1 force-pushed the feature/fontify-arrow-fn-args branch from d6fa23f to e007a1b Compare July 9, 2022 12:14
@Fuco1 Fuco1 changed the title feat(font): fontify arrow fn arguments (wip) feat(font): fontify arrow fn arguments Jul 9, 2022
@Fuco1 Fuco1 marked this pull request as ready for review July 9, 2022 12:14
@Fuco1 Fuco1 force-pushed the feature/fontify-arrow-fn-args branch from e007a1b to a915a08 Compare July 9, 2022 12:38
@Fuco1 Fuco1 force-pushed the feature/fontify-arrow-fn-args branch from a915a08 to 84bab53 Compare July 9, 2022 13:32
@Fuco1 Fuco1 changed the title feat(font): fontify arrow fn arguments feat(fontlock): fontify arrow fn arguments Jul 9, 2022
@josteink
Copy link
Member

This change is above my paygrade to review, but from what I can tell you've added test-cases and none of the existing one are failing.

Looks good to me, I guess? 😆

@josteink josteink merged commit acd8d79 into emacs-typescript:master Jul 30, 2022
@Fuco1 Fuco1 deleted the feature/fontify-arrow-fn-args branch August 5, 2022 19:52
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.

2 participants