diff --git a/Sources/Splash/Grammar/SwiftGrammar.swift b/Sources/Splash/Grammar/SwiftGrammar.swift index 79a98d5..cc07d9c 100644 --- a/Sources/Splash/Grammar/SwiftGrammar.swift +++ b/Sources/Splash/Grammar/SwiftGrammar.swift @@ -13,7 +13,9 @@ public struct SwiftGrammar: Grammar { public var syntaxRules: [SyntaxRule] public init() { - var delimiters = CharacterSet.alphanumerics.inverted + var delimiters = CharacterSet.alphanumerics + // Using the .inverted property crashes on Linux + delimiters.invert() delimiters.remove("_") delimiters.remove("\"") delimiters.remove("#")