.foregroundColor: theme.key,
.font: boldFont
],
- HighlightKey.rawValue: [
- .foregroundColor: theme.plainText,
- .font: defaultFont
- ],
HighlightIP.rawValue: [
.foregroundColor: theme.url,
.font: defaultFont
{
switch (section) {
case PrivateKey:
+ append_highlight_span(ret, parent.s, s, is_valid_key(s) ? HighlightPrivateKey : HighlightError);
+ break;
case PublicKey:
+ append_highlight_span(ret, parent.s, s, is_valid_key(s) ? HighlightPublicKey : HighlightError);
+ break;
case PresharedKey:
- append_highlight_span(ret, parent.s, s, is_valid_key(s) ? HighlightKey : HighlightError);
+ append_highlight_span(ret, parent.s, s, is_valid_key(s) ? HighlightPresharedKey : HighlightError);
break;
case MTU:
append_highlight_span(ret, parent.s, s, is_valid_mtu(s) ? HighlightMTU : HighlightError);