Go Back   Scooter Forums > Beyond Compare 3 Discussion > General Discussion
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 13-Dec-2007, 05:34 PM
Jobol Jobol is offline
Enthusiast
 
Join Date: Dec 2007
Posts: 25
Question 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 at 05:38 PM.
Reply With Quote
  #2  
Old 14-Dec-2007, 09:28 AM
Craig Craig is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 2,097
Default

"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.
__________________
Craig P Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:12 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.