User forums > Using Code::Blocks

Lexer for C only?

(1/1)

omnishambles:
Hi,

When I saw some variables in C code like 'class' get highlighted I realised the lexer is C/C++. Before I start deleting C++ keywords, has anyone already created a lexer specifically for C that they'd be willing share, or think it's a useful idea to implement? Failing that, am I right in thinking it would be as simple as deleting words specific to C++? (I know creating a new C lexer would be best but I'm really short on time and don't need C++). Thanks.

Hyena:
I am having the same problem. There is no such language as C/C++. Where is a proper C lexer?

Navigation

[0] Message Index

Go to full version