You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Type names of form "sometype_t" lose syntax highlighting with capitalization. #45
So maybe this is just a convention that I am not familiar with, but I've noticed something weird (at least to me) about Atom's C syntax highlighting.
Specifically, type names ending with "_t" are only highlighted if all letters are lowercase. For example:
lettercase_tfoo1; // "lettercase_t" is highlighted by Atom.letterCase_tfoo2; // "letterCase_t" is not highlighted by Atom.
I've just noticed that it does the same thing here after posting the above example. Is this a bug or just expected behavior?
changed the title [-]Types of form "sometype_t" lose syntax highlighting with capitalization.[/-][+]Type names of form "sometype_t" lose syntax highlighting with capitalization.[/+]on Nov 26, 2014
@ear Your syntax theme might not support C that well. Can you please click right before size_t and execute the Editor: Log Cursor Scope command? Thanks!
Ok, that means that language-c is picking them up correctly. You might want to file an issue with Atom Gooey asking them to highlight support.type.sys-types.
Activity
[-]Types of form "sometype_t" lose syntax highlighting with capitalization.[/-][+]Type names of form "sometype_t" lose syntax highlighting with capitalization.[/+]lee-dohm commentedon Nov 27, 2014
Looks like a bug to me. The C spec allows upper and lowercase letters for identifiers, even of types. Though POSIX reserves the
_tsuffix for system implementation and the common_ttypes are all lower-case.vdcow commentedon Aug 9, 2015
There are several related problems.
🐛 Fix reserved POSIX types
ear commentedon Jan 14, 2016
I hope this is right but let me ask: should this have prevented the error in highlighting in these cases I have today? Here are some screenshots:
I.e.
size_tand<cstdint>/<stdint.h>types likeuint64_t.I guess it bears mentioning I am in a
.cppfile. Atom is just using thislanguage-cpackage, no other relevant ones.winstliu commentedon Jan 14, 2016
@ear Your syntax theme might not support C that well. Can you please click right before
size_tand execute theEditor: Log Cursor Scopecommand? Thanks!ear commentedon Jan 14, 2016
Sure thing! Here it is:
I am using UI Theme Nucleus Dark and Syntax Theme Atom Gooey
winstliu commentedon Jan 14, 2016
Ok, that means that language-c is picking them up correctly. You might want to file an issue with Atom Gooey asking them to highlight
support.type.sys-types.