From ceb1654ced23d545e1b2437751a70113cb1a2d2a Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 11 Jul 2025 10:52:37 +0200 Subject: Improve text rendering and component detection. --- Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift') 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 -- cgit