new release script

This commit is contained in:
Mark Gregory
2026-10-18 16:06:16 +01:00
parent 73e9a3efe2
commit abd8c59e60
4 changed files with 113 additions and 11 deletions
+8
View File
@@ -1546,6 +1546,14 @@ struct SQLTextView: NSViewRepresentable {
}
}
// MySQL # comments are muted, including the entire line.
if let comments = try? NSRegularExpression(pattern: #"(?m)^[ \t]*#.*$"#) {
for match in comments.matches(in: editor.string, range: range) {
storage.addAttribute(.foregroundColor,
value: NSColor.secondaryLabelColor,
range: match.range)
}
}
storage.endEditing()
}
}