Bug:: Suggestion:: C#, Everything is an identifier?!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jobol
    Enthusiast
    • Dec 2007
    • 25

    Bug:: Suggestion:: C#, Everything is an identifier?!

    Hi,

    I am trying out the new syntax coloring. So far so good, except that when I change the "Identifier", all my code changes, classes, objects, methods, heck even my using statements!

    Are these all supposed to be "identifiers"? or what is an "identifier" exactly?

    Now, I don't know the power of the syntax parser, but a entry called "Type Identifier" would be greatly appreciated. It would highlight the types, mainly classes.

    Example:



    Here is how it looks with BC3

    Last edited by Jobol; 13-Dec-2007, 06:38 PM.
  • Zoë
    Team Scooter
    • Oct 2007
    • 2666

    #2
    "Identifier" is pretty much any alphanumeric string in the file if it isn't covered by one of the other types. Types, variables, and function names would all fall under that category.

    The parser is currently performing simple regular expression matches and doesn't maintain any sort of state from one RE to another. It definitely is not possible to differentiate types/variables/etc based on where they occur. If you follow a strict naming convention you could try using that. In your samples you could add a new type that has to start with a capital letter and call it "type" or something, but it will still catch your function calls unless you make them something else and include the ( in the RE for them.
    Zoë P Scooter Software

    Comment

    Working...