tree-sitter-grammars / tree-sitter-query

TS query grammar for tree-sitter
Apache License 2.0
52 stars 14 forks source link

SPM support #19

Closed mattmassicotte closed 2 years ago

mattmassicotte commented 2 years ago

This adds Swift bindings and Swift Package Manager (SPM) support. I maintain the tree-sitter Swift binding here https://github.com/chimeHQ/SwiftTreeSitter

Here are some examples of other PRs:

tree-sitter/tree-sitter-go#79 tree-sitter/tree-sitter-c#105 tree-sitter/tree-sitter-haskell#91

These are manually created. They should not ever impact the parser. Changes that require the use of a cpp scanner, which some parsers need, would require an update. The exclude patterns are pretty safe to get out of sync. They can, in some circumstances, generate warnings for Swift users. But, it's really minor.

Oh, and thanks for making this, it's really cool.

theHamsta commented 2 years ago

Thank you!