Sway grammar for tree-sitter
- The Sway Book - The Sway book describes the language in detail with examples.
Sway language is under active development with new features added all the time. We want to keep this grammar as up to date as possible and contributions are very much appreciated.
If you find a bug or missing feature, please open an issue or send a pull request including the following.
- example Sway code demostrating the bug
- the current output of
tree-sitter parse
- (Optional) the expected output of
tree-sitter parse
Pull requests will be tested against files in the corpus
directory as well as sway files from the https://github.com/FuelLabs/sway. PRs should include a new test case in the corpus
directory for every grammar rule change.