tree-sitter-swift
tree-sitter-swift copied to clipboard
Swift grammar for tree-sitter
when we parse `!Enum.case.variable` `!` is associated to `Enum` but it should be associated to `Enum.case.variable`
update version of cli to latest one and generate files #34
I tried to be as correct to the timeline I could, and I wanted not to name more people without asking them for permission than I needed. #33
LICENSE
Hi, can you add an explicit license to this repo (such as MIT, which would be consistent with the rest of tree-sitter)? Thanks!
I get this error when trying to use the grammar ``` Incompatible language version. Compatible range: 13 - 13. Got: 10 ``` This is after i installed the grammar like...
seems to fail since there doesn't exist the `super`, `override` and `require` keywords: Test Source: ```swift import UIKit final class ViewController: UIViewController { // MARK: - Init required init() {...
**Example** ```swift func foo(completion: (Result) -> Void)) {} ``` **Result** ``` (program [0, 0] - [1, 0] (function_declaration [0, 0] - [0, 53] name: (identifier [0, 5] - [0, 8])...
**Example** ```swift public lazy var foo: String = { return "Foo" }() ``` **Result** ``` (program [0, 0] - [3, 0] (variable_declaration [0, 0] - [1, 15] (modifier [0, 0]...
@robrix or @maxbrunsfeld: Is there a certain criteria we should meet to tag v0.0.1 or future tags? There's plenty to do before it's even close to 1.0, but it'd be...
**Example** ```swift protocol Foo where BarType: Equatable { } ``` **Result** ``` (program [0, 0] - [1, 0] (protocol_declaration [0, 0] - [0, 41] (ERROR [0, 9] - [0, 27]...