Skip to content

fix(fontlock): fontify parameters in multiline arglist #168

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 1 commit into from
Jul 5, 2022

Conversation

Fuco1
Copy link
Contributor

@Fuco1 Fuco1 commented Jun 30, 2022

Fix the anchored matcher to allow for multi-line arg list. I will add tests if we decide to go forward with this change.

Before
image

after

image

@Fuco1 Fuco1 force-pushed the fix/multiline-param-list branch from e0875a2 to fc6a63e Compare June 30, 2022 21:38
@josteink
Copy link
Member

josteink commented Jul 2, 2022

Hey. Seems like we’re still missing some test-cases for the new syntax highlighting you’re adding support for here.

Let me know when you think this is ready for review!

@Fuco1 Fuco1 force-pushed the fix/multiline-param-list branch from fc6a63e to 218a546 Compare July 4, 2022 15:16
@Fuco1
Copy link
Contributor Author

Fuco1 commented Jul 4, 2022

I added more test cases and also removed the continued formal parameter list rule because it is now covered by the other anchored matcher. All existing tests pass without it as well and visually I can't tell a difference in the buffer.

@josteink
Copy link
Member

josteink commented Jul 5, 2022

Simplifications are always welcome. And especially with more tests. Consider it merged!

@josteink josteink merged commit 3eec403 into emacs-typescript:master Jul 5, 2022
@Fuco1 Fuco1 deleted the fix/multiline-param-list branch July 7, 2022 16:40
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