Posted 19 years ago
by Greg Shaffer
- Boulder
Hi Again,
I think I followed the directions for the TokenIDType name, yet when I step through my program none of the IDs are set.
1) I create an enum like this:
public enum ETypeID
{
DefaultToken,
CommentWordToken,
...
}
2) I set the SyntaxLanguage's TokenIDType
SyntaxLanguage.TokenIDType = typeof(ETypeID);
Based on the directions in the documention (which describes a TokenIDTypeName), I'm not sure what I did wrong. The enum values I've defined match the values in the default C# language.
What am I missing?
Thanks,
Greg
I think I followed the directions for the TokenIDType name, yet when I step through my program none of the IDs are set.
1) I create an enum like this:
public enum ETypeID
{
DefaultToken,
CommentWordToken,
...
}
2) I set the SyntaxLanguage's TokenIDType
SyntaxLanguage.TokenIDType = typeof(ETypeID);
Based on the directions in the documention (which describes a TokenIDTypeName), I'm not sure what I did wrong. The enum values I've defined match the values in the default C# language.
What am I missing?
Thanks,
Greg