diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-11 10:52:37 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-11 10:52:37 +0200 |
| commit | ceb1654ced23d545e1b2437751a70113cb1a2d2a (patch) | |
| tree | b1ed19aa19929e16cd771e1cfa0faf656c4ff273 /Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift | |
| parent | 8564439356f4bcc3e21b19738eb87b4c0722c623 (diff) | |
Improve text rendering and component detection.
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 |