@@ -90,22 +90,23 @@ type spanStyle struct {
9090}
9191
9292var stylemap = map [highlight ]spanStyle {
93- highlightSection : spanStyle {color : win .RGB (0x32 , 0x6D , 0x74 ), effects : win .CFE_BOLD },
94- highlightField : spanStyle {color : win .RGB (0x9B , 0x23 , 0x93 ), effects : win .CFE_BOLD },
95- highlightPrivateKey : spanStyle {color : win .RGB (0x64 , 0x38 , 0x20 )},
96- highlightPublicKey : spanStyle {color : win .RGB (0x64 , 0x38 , 0x20 )},
97- highlightPresharedKey : spanStyle {color : win .RGB (0x64 , 0x38 , 0x20 )},
98- highlightIP : spanStyle {color : win .RGB (0x0E , 0x0E , 0xFF )},
99- highlightCidr : spanStyle {color : win .RGB (0x81 , 0x5F , 0x03 )},
100- highlightHost : spanStyle {color : win .RGB (0x0E , 0x0E , 0xFF )},
101- highlightPort : spanStyle {color : win .RGB (0x81 , 0x5F , 0x03 )},
102- highlightMTU : spanStyle {color : win .RGB (0x1C , 0x00 , 0xCF )},
103- highlightTable : spanStyle {color : win .RGB (0x1C , 0x00 , 0xCF )},
104- highlightKeepalive : spanStyle {color : win .RGB (0x1C , 0x00 , 0xCF )},
105- highlightComment : spanStyle {color : win .RGB (0x53 , 0x65 , 0x79 ), effects : win .CFE_ITALIC },
106- highlightDelimiter : spanStyle {color : win .RGB (0x00 , 0x00 , 0x00 )},
107- highlightCmd : spanStyle {color : win .RGB (0x63 , 0x75 , 0x89 )},
108- highlightError : spanStyle {color : win .RGB (0xC4 , 0x1A , 0x16 ), effects : win .CFE_UNDERLINE },
93+ highlightSection : spanStyle {color : win .RGB (0x32 , 0x6D , 0x74 ), effects : win .CFE_BOLD },
94+ highlightField : spanStyle {color : win .RGB (0x9B , 0x23 , 0x93 ), effects : win .CFE_BOLD },
95+ highlightPrivateKey : spanStyle {color : win .RGB (0x64 , 0x38 , 0x20 )},
96+ highlightPublicKey : spanStyle {color : win .RGB (0x64 , 0x38 , 0x20 )},
97+ highlightPresharedKey : spanStyle {color : win .RGB (0x64 , 0x38 , 0x20 )},
98+ highlightIP : spanStyle {color : win .RGB (0x0E , 0x0E , 0xFF )},
99+ highlightCidr : spanStyle {color : win .RGB (0x81 , 0x5F , 0x03 )},
100+ highlightHost : spanStyle {color : win .RGB (0x0E , 0x0E , 0xFF )},
101+ highlightPort : spanStyle {color : win .RGB (0x81 , 0x5F , 0x03 )},
102+ highlightMTU : spanStyle {color : win .RGB (0x1C , 0x00 , 0xCF )},
103+ highlightTable : spanStyle {color : win .RGB (0x1C , 0x00 , 0xCF )},
104+ highlightKeepalive : spanStyle {color : win .RGB (0x1C , 0x00 , 0xCF )},
105+ highlightUpdateEndpointIP : spanStyle {color : win .RGB (0x1C , 0x00 , 0xCF )},
106+ highlightComment : spanStyle {color : win .RGB (0x53 , 0x65 , 0x79 ), effects : win .CFE_ITALIC },
107+ highlightDelimiter : spanStyle {color : win .RGB (0x00 , 0x00 , 0x00 )},
108+ highlightCmd : spanStyle {color : win .RGB (0x63 , 0x75 , 0x89 )},
109+ highlightError : spanStyle {color : win .RGB (0xC4 , 0x1A , 0x16 ), effects : win .CFE_UNDERLINE },
109110}
110111
111112func (se * SyntaxEdit ) evaluateUntunneledBlocking (cfg string , spans []highlightSpan ) {
0 commit comments