This is the current implementation that is used in RadSyntaxEditor when navigating to the next/previous word, start/end of the current word, etc. It would be good to have an event that allows you to specify the ChartType according to your needs and thus affecting the words navigation in the document.
internal static CharType GetCharType(char c)
{
if (CharsToBeTreatedAsDefault.Contains(c))
{
return CharType.Default;
}
if (LineBreak.IsLineBreak(c))
{
return CharType.NewLine;
}
if (char.IsWhiteSpace(c))
{
return CharType.WhiteSpace;
}
if (char.IsPunctuation(c) || char.IsSymbol(c))
{
return CharType.PunctuationOrSymbol;
}
return CharType.Default;
}