new release script
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user