Need to improve support to C#
Brought to you by:
dhiebert
1. support generics
C# 2.0 introduce a new keyword "where" to support
generic class and method. The syntax of generics are
like
class Class1<T> where T: object, new ()
{
public static S Method1<S>()
{
}
public static S Metho2<S> where S: class2
{
}
}
2. recognize verbatim string
if there is a string like this:
private string str1 = @"abc\";
then all the code after this line is treated by ctags
as part of str1, until ctags meet another quote.
3. enum can have a base type
c# enum can have a base type like:
enum Enum1 : byte
{
Value1, Values
}
ctags cannot process it correctly.
Logged In: YES
user_id=1127237
Originator: NO
i've committed a fix for problem 2 (verbatim string literals) as revision 525.
Logged In: YES
user_id=1127237
Originator: NO
i've committed a fix for problem 3 (derived enums) as revision 651.
Logged In: YES
user_id=1127237
Originator: NO
i've committed a fix for the first part of problem 1 as revision 652: it's now possible to have a generic C# class, though "where" clauses aren't supported.