Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit db995b2

Browse files
author
fridakitten
committed
CodeEditor => fixed a faulty highlighting rule in swift
1 parent d4e3033 commit db995b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FCM/UI/UINeoEditor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ func grule(_ isaythis: String) -> [HighlightRule] {
10351035
]), HighlightRule(pattern: try! NSRegularExpression(pattern: "(?<=\\b(struct|class|extension)\\s)\\w+", options: []), formattingRules: [ TextFormattingRule(key: .foregroundColor, value: color2)
10361036
]), HighlightRule(pattern: try! NSRegularExpression(pattern: "\\b(-?\\d+(\\.\\d+)?)\\b", options: []), formattingRules: [ TextFormattingRule(key: .foregroundColor, value: color4)
10371037
]), HighlightRule(pattern: try! NSRegularExpression(pattern: "(?<=\\b(func|let|var)\\s)\\w+", options: []), formattingRules: [ TextFormattingRule(key: .foregroundColor, value: color8)
1038-
]), HighlightRule(pattern: try! NSRegularExpression(pattern: "\\b\\w+(?=(\\())", options: []), formattingRules: [ TextFormattingRule(key: .foregroundColor, value: color7)
1038+
]), HighlightRule(pattern: try! NSRegularExpression(pattern: #"\b\w+(?=\s*[\{\(])"#, options: []), formattingRules: [ TextFormattingRule(key: .foregroundColor, value: color7)
10391039
]), HighlightRule(pattern: try! NSRegularExpression(pattern: "@\\w+[^()]", options: []), formattingRules: [ TextFormattingRule(key: .foregroundColor, value: color7)])
10401040
]
10411041
case "c", "h", "m", "mm", "cpp":

0 commit comments

Comments
 (0)