public static void InitList(Dictionary <eType, SyntaxType> SyntaxOccurences, eSyntaxType Type) { AddSyntaxType(SyntaxOccurences, new SyntaxType("Normal", eType.Normal, "()", Color.Black)); if ((Type & eSyntaxType.Parse) == eSyntaxType.Parse) //Parse { AddSyntaxType(SyntaxOccurences, new SyntaxType("Keyword", eType.Keyword, "_kw", Color.Blue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Sub-keyword", eType.SubKeyword, "_skw", Color.SteelBlue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Function", eType.Function, "_fun", Color.Maroon)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Call", eType.Call, "_call", Color.Indigo)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Comment", eType.Comment, "_com", Color.Green)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Sub-block", eType.SubBlock, "_sb", Color.IndianRed)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Text match", eType.TextMatch, "_tm", Color.Purple)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Literal", eType.Literal, "_lit", Color.PaleVioletRed)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Variable", eType.Variable, "_var", Color.FromArgb(0x0050FF))); AddSyntaxType(SyntaxOccurences, new SyntaxType("Sub tree", eType.Tree, "_tr", Color.FromArgb(0x00A0FF))); AddSyntaxType(SyntaxOccurences, new SyntaxType("Operator", eType.Opereator, "_op", Color.SlateBlue)); } if ((Type & eSyntaxType.Compiled) == eSyntaxType.Compiled) //Compiled { AddSyntaxType(SyntaxOccurences, new SyntaxType("cComment", eType.cComment, string.Empty, Color.Green)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Name", eType.Name, string.Empty, Color.Blue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("ArgName", eType.ArgName, string.Empty, Color.SteelBlue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("ArgValue", eType.ArgValue, string.Empty, Color.Maroon)); } }
public static void InitList(Dictionary<eType, SyntaxType> SyntaxOccurences, eSyntaxType Type) { AddSyntaxType(SyntaxOccurences, new SyntaxType("Normal", eType.Normal, "()", Color.Black)); if ((Type & eSyntaxType.Parse) == eSyntaxType.Parse) //Parse { AddSyntaxType(SyntaxOccurences, new SyntaxType("Keyword", eType.Keyword, "_kw", Color.Blue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Sub-keyword", eType.SubKeyword, "_skw", Color.SteelBlue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Function", eType.Function, "_fun", Color.Maroon)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Call", eType.Call, "_call", Color.Indigo)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Comment", eType.Comment, "_com", Color.Green)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Sub-block", eType.SubBlock, "_sb", Color.IndianRed)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Text match", eType.TextMatch, "_tm", Color.Purple)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Literal", eType.Literal, "_lit", Color.PaleVioletRed)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Variable", eType.Variable, "_var", Color.FromArgb(0x0050FF))); AddSyntaxType(SyntaxOccurences, new SyntaxType("Sub tree", eType.Tree, "_tr", Color.FromArgb(0x00A0FF))); AddSyntaxType(SyntaxOccurences, new SyntaxType("Operator", eType.Opereator, "_op", Color.SlateBlue)); } if ((Type & eSyntaxType.Compiled) == eSyntaxType.Compiled) //Compiled { AddSyntaxType(SyntaxOccurences, new SyntaxType("cComment", eType.cComment, string.Empty, Color.Green)); AddSyntaxType(SyntaxOccurences, new SyntaxType("Name", eType.Name, string.Empty, Color.Blue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("ArgName", eType.ArgName, string.Empty, Color.SteelBlue)); AddSyntaxType(SyntaxOccurences, new SyntaxType("ArgValue", eType.ArgValue, string.Empty, Color.Maroon)); } }