Skip to content

Add Swift tree-sitter language support#193

Open
possibilities wants to merge 1 commit intocased:mainfrom
possibilities:feat/add-swift-support
Open

Add Swift tree-sitter language support#193
possibilities wants to merge 1 commit intocased:mainfrom
possibilities:feat/add-swift-support

Conversation

@possibilities
Copy link
Contributor

Summary

  • Add tree-sitter queries and language mapping for Swift (.swift)
  • Covers classes, structs, enums, actors, extensions, protocols, typealiases, functions, and initializers
  • Swift reuses class_declaration for class/struct/enum/extension, differentiated by keyword child; extension uses user_type for name

Testing

pytest tests/test_swift_symbols.py tests/test_tree_sitter_languages.py tests/test_symbol_extraction_multilang.py -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant