https://github.com/shnarazk/tree-sitter-uiua
Uiua grammar for tree-sitter. Finally, Uiua programmers get AST-based editing features.
https://github.com/shnarazk/tree-sitter-uiua
tree-sitter-parser uiua
Last synced: about 1 month ago
JSON representation
Uiua grammar for tree-sitter. Finally, Uiua programmers get AST-based editing features.
- Host: GitHub
- URL: https://github.com/shnarazk/tree-sitter-uiua
- Owner: shnarazk
- License: mpl-2.0
- Created: 2023-10-08T21:38:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T11:21:00.000Z (3 months ago)
- Last Synced: 2025-04-12T20:12:44.970Z (about 1 month ago)
- Topics: tree-sitter-parser, uiua
- Language: C
- Homepage:
- Size: 5.46 MB
- Stars: 21
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-uiua
**Finally, [Uiua](https://github.com/uiua-lang/uiua) programmers get AST-based editing features.**
## References
- [Uiua](https://www.uiua.org), [github](https://github.com/uiua-lang/uiua)
- [tree-sitter tutorial](https://tree-sitter.github.io/tree-sitter/creating-parsers)
- [target color schema](https://github.com/helix-editor/helix/blob/53f47bc47771c94dab51626ca025be28e62eba0c/runtime/themes/solarized_light.toml#L1-L23)
- [textobjects](https://docs.helix-editor.com/guides/textobject.html)# A configuration for Helix
Are you a [Helix](https://helix-editor.com/) user? Then try:
1. [Optional] Add [the basic configuration](https://github.com/helix-editor/helix/wiki/How-to-install-the-default-language-servers#uiua)
2. Add the following to your $CONFIG/helix/languages.toml
```toml
[[grammar]]
name = "uiua"
source.git = "https://github.com/shnarazk/tree-sitter-uiua"
source.rev = commit-id-as-string
```3. Build up on shell:
```
$ hx -g fetch
$ hx -g build
```4. Copy query files:
```
$ mkdir -p $HELIX/runtime/queries/uiua # or make your query directory
$ cp -r queries $HELIX/runtime/queries/uiua
```Now you can:
- traverse modules by `]t` and `[t`
- traverse comments by `]c` and `[c`
- and any AST-based editing as other languages