Skip to content

c# syntax lexer #367

@bjornbouetsmith

Description

@bjornbouetsmith

Improve c# syntax lexer?

Expand number of classes used for lexer?

Hi,
It seems like the syntaxt lexer for c# is extremely primitive compared to other languages.

i.e.

Class names, variable names, methods, properties etc. all gets the same css class.

They all end up using the "n" class - which makes it impossible to make the syntaxt look like anything "real"

I know it might not be easy to expand the lexer since its all regular expressions it seems like, but if just a couple of the above could be fixed it would make everything look so much better

Just look at this example using "vs" chroma style - its pretty boring - missing colors for Type name etc. Just adding a color for the type would improve everything much
image

Compared to how it looks inside Visual Studio:
image

And "source" of the above example:
image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions