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

Improve readability of C language constants #283

Merged
merged 2 commits into from Jan 25, 2022

Conversation

jvoisin
Copy link
Contributor

@jvoisin jvoisin commented Dec 30, 2021

This commits makes constant stand out. This is important in C, since interesting things are usually happening in their proximity, like checking/returning an error, passing particular values/flags to functions, …

Before:
before

After:
after

Copy link
Contributor

@arcticicestudio arcticicestudio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jvoisin 👋, thanks for your contribution 👍

Good improvement, but I'd like to suggest to use the Type highlighting group instead of Exception just to make it more clear that these are more or less language native types. Looks like there are a lot of matched constants for the C Vim syntax so this should definitely a good visual improvement.

colors/nord.vim Outdated Show resolved Hide resolved
Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Copy link
Contributor

@arcticicestudio arcticicestudio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks again 🚀

@arcticicestudio arcticicestudio changed the title Improve the lisibility of the C language Improve readability of C language constants Jan 25, 2022
@arcticicestudio arcticicestudio merged commit b32592e into nordtheme:develop Jan 25, 2022
@arcticicestudio
Copy link
Contributor

Release note & changelog assets

Before

After

@jvoisin jvoisin deleted the patch-1 branch January 26, 2022 11:09
jcypret pushed a commit to jcypret/nord-vim-midnight that referenced this pull request Feb 19, 2022
Improve readability of C language constants

To improve the readability of C language constants, defined by the
`cConstant` syntax highlighting group [1], these are now colored with
`nord9` for the foreground to make them stand out. This is important in
C, since interesting things are usually happening in their proximity,
like checking/returning an error, passing particular values/flags to
functions and so on.

[1]: https://github.com/vim/vim/blob/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471/runtime/syntax/c.vim#L313-L375



Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>

nordthemeGH-283
crispgm added a commit to crispgm/nord-vim that referenced this pull request Apr 2, 2022
arcticicestudio pushed a commit that referenced this pull request May 14, 2022
Improve readability of C language constants

To improve the readability of C language constants, defined by the
`cConstant` syntax highlighting group [1], these are now colored with
`nord9` for the foreground to make them stand out. This is important in
C, since interesting things are usually happening in their proximity,
like checking/returning an error, passing particular values/flags to
functions and so on.

[1]: https://github.com/vim/vim/blob/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471/runtime/syntax/c.vim#L313-L375



Co-authored-by: Arctic Ice Studio <development@arcticicestudio.com>
Co-authored-by: Sven Greb <development@svengreb.de>

GH-283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants