Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007

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


    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.


    Here is how it looks with BC3

    Last edited by Jobol; 13-Dec-2007 at 05:38 PM.

  2. #2
    Join Date
    Oct 2007
    Madison, WI


    "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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts