Skip to content

Add Swift, Bash, YAML, and TOML tree-sitter language support#192

Closed
possibilities wants to merge 1 commit intocased:mainfrom
possibilities:feat/add-swift-bash-yaml-toml
Closed

Add Swift, Bash, YAML, and TOML tree-sitter language support#192
possibilities wants to merge 1 commit intocased:mainfrom
possibilities:feat/add-swift-bash-yaml-toml

Conversation

@possibilities
Copy link
Contributor

Summary

  • Add tree-sitter queries and language mappings for Swift, Bash, YAML, and TOML
  • Swift covers classes, structs, enums, actors, extensions, protocols, typealiases, functions, and initializers
  • Bash captures both function name() and name() function definition styles
  • YAML extracts top-level mapping keys only (nested keys excluded) with full mapping pair spans
  • TOML captures table headers (bare, dotted, quoted) and array table headers
  • Quoted key/table names are normalized (wrapping quotes stripped) across TOML and YAML
  • Update supported languages docs from 12 to 21

Testing

pytest tests/test_swift_symbols.py tests/test_bash_symbols.py tests/test_yaml_symbols.py tests/test_toml_symbols.py tests/test_tree_sitter_languages.py tests/test_symbol_extraction_multilang.py tests/test_tree_sitter_symbol_extractor.py -v

@possibilities possibilities force-pushed the feat/add-swift-bash-yaml-toml branch from 2324425 to 8efbb21 Compare March 16, 2026 22:14
@possibilities possibilities force-pushed the feat/add-swift-bash-yaml-toml branch from 8efbb21 to f35a6a9 Compare March 16, 2026 22:18
@possibilities
Copy link
Contributor Author

Splitting into 4 separate PRs (one per language) for cleaner review.

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