Codeine icon indicating copy to clipboard operation
Codeine copied to clipboard

Swift support

Open hamin opened this issue 10 years ago • 1 comments

Now that Swift has been open sourced, wondering how difficult it would be to add swift support. Would love to help out

hamin avatar Jan 04 '16 16:01 hamin

Codeine uses ClangKit to parse source code: https://github.com/macmade/ClangKit

ClangKit is basically an Objective-C frontend to libclang. That's how syntax highlighting, error reporting and code completions are implemented.

Looking at Apple's GitHub, I can see a swift-clang repository: https://github.com/apple/swift-clang

So it might just work out of the box by recompiling this version of clang into ClangKit.

macmade avatar Jan 04 '16 20:01 macmade