Syntax error compiling CasePath expression with '/' in Swift 5.7 #75
-
Seems like it's colliding with RegEx literal syntax.
Here's another workaround, based off Revised RegEx parsing behaviour:
Related discussion was in #72 PS Seems like neither workarounds are making Xcode 14 previews happy. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
While the new "bare" regex syntax is supposed to be disabled by default, that doesn't appear to be the case in the first beta. Depending on your app's build settings, you should be able to disable it by setting the "Enable Bare Slash Regex Literals" build setting to false. You could also temporarily use the deprecated Please file feedback, but hopefully this is fixed soon! Meanwhile, I'm going to convert this to a discussion since it's not a bug in the library, but rather an issue with Xcode. |
Beta Was this translation helpful? Give feedback.
While the new "bare" regex syntax is supposed to be disabled by default, that doesn't appear to be the case in the first beta. Depending on your app's build settings, you should be able to disable it by setting the "Enable Bare Slash Regex Literals" build setting to false.
You could also temporarily use the deprecated
.case(Enum.case)
syntax, but we wouldn't recommend this since it's a lot of churn to contend with for a bug in the first Xcode 14 beta.Please file feedback, but hopefully this is fixed soon!
Meanwhile, I'm going to convert this to a discussion since it's not a bug in the library, but rather an issue with Xcode.