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

Highlight atom map keys that end with a newline #470

Merged
merged 2 commits into from
Mar 24, 2021

Conversation

J3RN
Copy link
Contributor

@J3RN J3RN commented Dec 17, 2020

Problem

Presently, the atom face is not applied to the syntactic-sugar (flipped colon) atom keys in a map if the value for key is on the next line.

old_key

Solution

Small change for the rx to accept either a space or a newline after the key. For whatever reason (probably a good one), newlines are not considered part of the "space" class.

new_key

@jsmestad
Copy link
Contributor

@J3RN can you pull in latest master? The CI has switched to Github Actions and should go green now

@J3RN J3RN force-pushed the map-newline-highlight branch from e6a18e0 to 58a0182 Compare March 24, 2021 15:43
@jsmestad
Copy link
Contributor

Would you be able to add a test for this so we ensure there is no regression with future updates?

@jsmestad jsmestad merged commit 0212b06 into elixir-editors:master Mar 24, 2021
@J3RN J3RN deleted the map-newline-highlight branch March 24, 2021 16:10
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