Commit 992256b5 authored by Drew's avatar Drew

Fix linux build

Use escapes correctly per the ERE specfication
parent 92fb73ee
Pipeline #2731 passed with stages
in 1 minute and 18 seconds
...@@ -57,7 +57,7 @@ private struct NamedScope { ...@@ -57,7 +57,7 @@ private struct NamedScope {
} }
//[0]: type //[0]: type
//[1]: identifier //[1]: identifier
private static let namedScopeBeginRegex = try! Regex(pattern: "(class|enum|struct|extension)[[:space:]]+(\(identifierPattern))[^\\{]*{") private static let namedScopeBeginRegex = try! Regex(pattern: "(class|enum|struct|extension)[[:space:]]+(\(identifierPattern))[^{]*\\{")
static func parse(sourceText: String) -> [NamedScope] { static func parse(sourceText: String) -> [NamedScope] {
var scopes: [NamedScope] = [] var scopes: [NamedScope] = []
for namedScope in NamedScope.namedScopeBeginRegex.findAll(inString: sourceText) { for namedScope in NamedScope.namedScopeBeginRegex.findAll(inString: sourceText) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment