diff options
Diffstat (limited to 'Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift')
| -rw-r--r-- | Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift b/Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift index d51a80f..8b31547 100644 --- a/Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift +++ b/Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift @@ -62,7 +62,9 @@ extension Wmap { ] if UserDefaults.standard.bool(forKey: "useSmartEditor") { - if element.type == .vertexLabel && !cachedVertexLabels.contains(element.value) { + if element.type == .vertexLabel + && !cachedVertexLabels.contains(element.value.lowercased()) + { if UserDefaults.standard.bool(forKey: "highlightMissingComponents") { attributes[.underlineStyle] = NSUnderlineStyle.thick.rawValue | NSUnderlineStyle.patternDot.rawValue |