Jintin / Swimat

An Xcode formatter plug-in to format your swift code.
https://jintin.github.io/Swimat/
MIT License
1.65k stars 89 forks source link

Swift 5 #""# support #210

Closed Daocheng closed 5 years ago

Daocheng commented 5 years ago

When dealing with code like webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview:active"));"#, completionHandler: nil)

Swimat insert a space wrongly. webView.evaluateJavaScript(#"window.dispatchEvent(new CustomEvent("webview: active"));"#, completionHandler: nil)

Jintin commented 5 years ago

Is #" a new start of String indicator?

Daocheng commented 5 years ago

See more details. https://github.com/apple/swift-evolution/blob/master/proposals/0200-raw-string-escaping.md