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

fix(syntax-hl): set nocombine on Comment #296

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

tmillr
Copy link
Member

@tmillr tmillr commented Sep 6, 2023

For Comment, don't inherit style attributes (e.g. bold, italic) from other (e.g. overlayed) hl groups. For example, an inline-comment appearing after a markdown heading in a markdown file (heading highlighting extends to the end of the text line, including comments) can become/display bold due to inheriting style attributes. nocombine keeps this from happening.

For `Comment`, don't inherit style attributes (e.g. bold, italic) from
other (e.g. overlayed) hl groups. For example, an inline-comment
appearing after a markdown heading in a markdown file (heading
highlighting extends to the end of the text line, including comments)
can become/display bold due to inheriting style attributes. `nocombine`
keeps this from happening.
@tmillr
Copy link
Member Author

tmillr commented Sep 6, 2023

Before and after (markdown heading)

Before

Screenshot 2023-09-06 at 7 26 42 AM

After

Screenshot 2023-09-06 at 7 08 37 AM

@ful1e5 ful1e5 merged commit 8ffe6b8 into projekt0n:main Sep 9, 2023
17 checks passed
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