The tokenizer uses the ANTLR4 grammar of the Tailor static analyzer for
Added support for Swift to CPD.
Was about to look into contributing a Swift parser, so thanks @tiobe for this. I'll build of your fork in the mean time.
Sorry, this took a bit longer to merge.
The grammar looks like, we could use it to add full PMD support for Swift.
Thank you for the PR!
#33 Changed the default values, matching our default ruleset