Modifications to the C lexer #124
Replies: 7 comments 8 replies
-
No I think I'm fine with adding Linux kernel types as long as they are separate from normal types, such as |
Beta Was this translation helpful? Give feedback.
-
How are common structs best handled? I see that Not gonna go overboard here, but I'd like to at least get everything in |
Beta Was this translation helpful? Give feedback.
-
How do you feel about lexing any ALL_CAPS_NAME as a constant? That tag is currently unused in this lexer. |
Beta Was this translation helpful? Give feedback.
-
PR #125 sent for this. Another thought; maybe there's some value in parsing dunder-prefixed names as builtin functions/constants, or something like this? |
Beta Was this translation helpful? Give feedback.
-
& now that I'm thinking about it... it might be prudent (and reduce a TON of complexity) to just tag anything with a |
Beta Was this translation helpful? Give feedback.
-
Actually after looking over your PR, I'm remembering that the whole point with word lists is that it allows clients to easily extend word lists for their domain. I prefer to keep domain-specific things like Linux types, constants, etc. out of an ANSI/ISO C lexer. Users that want to use the C lexer for highlighting Linux source code could do one of two things:
|
Beta Was this translation helpful? Give feedback.
-
Oh, you know why there is no Sadly, it appears that only the float change will make it into your PR :( |
Beta Was this translation helpful? Give feedback.
-
I want to add a few types to the C lexer. Specifically--I think having
size_t
but nossize_t
is a bit of an oversight. I'd love to also have the Linux kernel'su8 u16 u32 u64
types, and their signed (? I think, gonna have to do a little more digging)s8 s16 s32 s64
equivalents. Obviously it's not ideal to include too much from specific C code bases... but hey, it's the Linux kernel.Beta Was this translation helpful? Give feedback.
All reactions