https://github.com/starkware-libs/tree-sitter-cairo
https://github.com/starkware-libs/tree-sitter-cairo
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/starkware-libs/tree-sitter-cairo
- Owner: starkware-libs
- License: apache-2.0
- Created: 2024-06-10T10:05:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T17:25:17.000Z (over 1 year ago)
- Last Synced: 2025-09-12T08:52:47.720Z (9 months ago)
- Language: JavaScript
- Size: 1.09 MB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-cairo
Cairo grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
This is heavily inspired (copy pasted) from the [rust](https://github.com/tree-sitter/tree-sitter-rust) grammar for tree-sitter.
# Feedback
While is tested with the [cairo compiler repo](https://github.com/starkware-libs/cairo), [openzeppelin cairo contracts](https://github.com/OpenZeppelin/cairo-contracts) and [alexandria](https://github.com/keep-starknet-strange/alexandria), some patterns can be missing from those files hence cairo files might be incorrectly/incompletely highlighted. If you run into such a situation please create a minimal example that we can reproduce and open an issue.
# License
This project is licensed under the **Apache 2.0**.
See [LICENSE](LICENSE) for more information.