aboutsummaryrefslogtreecommitdiff
path: root/Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-11 10:52:37 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-11 10:52:37 +0200
commitceb1654ced23d545e1b2437751a70113cb1a2d2a (patch)
treeb1ed19aa19929e16cd771e1cfa0faf656c4ff273 /Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift
parent8564439356f4bcc3e21b19738eb87b4c0722c623 (diff)
Improve text rendering and component detection.
Diffstat (limited to 'Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift')
-rw-r--r--Map/Business/WmapSyntaxHighlighter/SyntaxHighlighter.swift4
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