For most lexers, particularly the C-like one, all identifiers have the same style:
variables, fields, functions, classes, they are the same for these simple lexers.
They don't do a real language parsing, only distinguishing state changes (finding string
bounds, comments bounds, symbols, etc.).
C-like languages, lacking an uniform declaration scheme (var, fun, etc.) makes even harder
to distinguish the lexical elements.
--
Philippe Lhoste
-- (near) Paris -- France
--
http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --