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

[C] Highlight stddef.h and stdint.h types #50

Open
obskyr opened this issue Mar 26, 2017 · 0 comments
Open

[C] Highlight stddef.h and stdint.h types #50

obskyr opened this issue Mar 26, 2017 · 0 comments

Comments

@obskyr
Copy link

obskyr commented Mar 26, 2017

As it stands now, types and values from stdbool.h (bool, _Bool, true, and false) are highlit, but not those from stddef.h (except NULL) and stdint.h. As those are very commonly used (often almost entirely replacing normal integer types), not having them highlit commonly results in slightly harder-to-read code. The keywords in question are:

  • stddef.h
    • size_t, wchar_t, ptrdiff_t
    • perhaps offsetof
  • stdint.h
    • int8_t, int16_t, int32_t, uint8_t, uint16_t, and uint32_t
    • int_least8_t, int_least16_t, int_least32_t, int_least64_t, uint_least8_t, uint_least16_t, uint_least32_t, and uint_least64_t
    • int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, and uint_fast64_t
    • intptr_t and uintptr_t
    • intmax_t and uintmax_t
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

No branches or pull requests

1 participant