Fix crash on Linux
This commit is contained in:
parent
2e3f17c2d0
commit
c43e8a9a73
|
@ -13,7 +13,9 @@ public struct SwiftGrammar: Grammar {
|
||||||
public var syntaxRules: [SyntaxRule]
|
public var syntaxRules: [SyntaxRule]
|
||||||
|
|
||||||
public init() {
|
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("\"")
|
delimiters.remove("\"")
|
||||||
delimiters.remove("#")
|
delimiters.remove("#")
|
||||||
|
|
Loading…
Reference in New Issue