Is your feature request related to a problem? Please describe.
Combine (and SwiftUI) use property wrapper introduced within Swift 5.1, but cpd doesn't parse them well. Our CI is now failing due to this
Describe the solution you'd like
I will make an PR for Swift 5.x support
Describe alternatives you've considered
none
Additional context
Already made one for Swift 4 : #778
Reproduced the issue:
[ERROR] tokenizeTest[1](net.sourceforge.pmd.cpd.SwiftTokenizerTest) Time elapsed: 0.004 s <<< ERROR!
net.sourceforge.pmd.lang.ast.TokenMgrError: Lexical error in file Swift5.1.swift at line 15, column 22. Encountered: token recognition error at: '$t'
at net.sourceforge.pmd.cpd.SwiftTokenizerTest.tokenizeTest(SwiftTokenizerTest.java:57)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4