| private List<EditFormats> formats = new List<EditFormats>() { new EditFormats() { Foreground = Brushes.Blue, FormatName = "KeywordFormat" }, new EditFormats() { Foreground = Brushes.Green, FormatName = "CommentFormat" }, new EditFormats() { Foreground = Brushes.Navy, FormatName = "OperatorFormat" }, }; |
| private List<Lexem> lexems = new List<Lexem>() { // // Define the lexeme to match the one character in the word new Lexem() { StartText = "class",LexemType = EditTokenType.CodeSnippet, FormatName = "KeywordFormat" }, new Lexem() { StartText = "def", LexemType = EditTokenType.CodeSnippet, FormatName = "KeywordFormat" }, new Lexem() { StartText = "#", EndText = "#", IsRegex = false, IsMultiline = false, LexemType = EditTokenType.Comment, FormatName = "CommentFormat" }, new Lexem() { StartText = "and", ContainsEndText=false, IsRegex = false, LexemType = EditTokenType.Keyword, FormatName = "KeywordFormat" }, new Lexem() { StartText = ")", ContainsEndText=false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, new Lexem() { StartText = "(", ContainsEndText=false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, new Lexem() { StartText = "}", ContainsEndText=false, IsRegex = false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, new Lexem() { StartText = "{", ContainsEndText=false, IsRegex = false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, new Lexem() { StartText = "]", ContainsEndText=false, IsRegex = false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, new Lexem() { StartText = "[", ContainsEndText=false, IsRegex = false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, new Lexem() { StartText = ";", ContainsEndText=false, IsRegex = false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, new Lexem() { StartText = "*", ContainsEndText=false, IsRegex = false, LexemType = EditTokenType.Operator, FormatName = "OperatorFormat" }, }; |