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

Theme Related Fixes #3412

Merged
merged 2 commits into from
Aug 14, 2022
Merged

Theme Related Fixes #3412

merged 2 commits into from
Aug 14, 2022

Conversation

n0s4
Copy link
Contributor

@n0s4 n0s4 commented Aug 13, 2022

  • Replace "text" with "ui.text" in rose_pine* themes
  • Change "attributes" to "attribute" in many included themes
  • Document "attribute", "property" and "punctuation.special" in the theme section of the book.
  • Remove "variable.function" from the documentation: it doesn't appear to exist in any highlights.scm.
  • Remove "path" from snazzy; maybe it should be string.special.path?

- Replace "text" with "ui.text" in rose_pine* themes
- Change "attributes" to "attribute" in many included themes
- Document "attribute", "property" and "punctuation.special" in the theme section of the book.
- Remove "variable.function" from the documentation: it doesn't appear to exist in any highlights.scm.
- Remove "path" from snazzy; maybe it should be string.special.path?
@the-mikedavis
Copy link
Member

In most cases we translate property/field to variable.other.member. I think the current @property capture for regex is an oversight - looking at that now I think it should be @label.

For snazzy, yeah I bet that was meant to be string.special.path. It may have successfully been matching that scope before #3275 and should be updated now

Also change @Property to @Label in regex highlights.
All themes that had "property" had "label" as well so I removed
property from them and let the label scope cover it since there
are no longer any captures for @Property.
Removed "property" from the theme docs as well.
@n0s4
Copy link
Contributor Author

n0s4 commented Aug 14, 2022

Ok. I changed @property to @label in regex/highlights.scm. Since that was the only instance of @property and every theme that had property also included label, I've removed property from each theme and let label cover it.

Also added string.special.path back to snazzy with the same colour as path had before.

@the-mikedavis the-mikedavis merged commit c5deb30 into helix-editor:master Aug 14, 2022
@the-mikedavis
Copy link
Member

Thanks @n0s4!

AlexanderBrevig pushed a commit to AlexanderBrevig/helix that referenced this pull request Aug 29, 2022
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
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