Skip to content

ruby-syntax-tree/ruby-syntax-fixtures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby syntax fixtures

This repository contains a collection of Ruby syntax fixtures for testing. It is meant to be vendored as a git submodule in other projects. It should exercise all of the syntax that is supported by the Ruby parser.

It is meant to be a minimally opinionated repository - it contains no prescribed AST structure or formatting output. It is up to the consuming project to decide how to parse the fixtures.

At the moment, every fixture contains valid Ruby syntax. This is enforced through the bin/lint.sh script.

Contributing

You're welcome to add additional fixtures if there is a syntax construct that is not currently covered. Please try to keep the fixtures as minimal as possible. Please open a pull request at https://github.com/ruby-syntax-tree/ruby-syntax-fixtures.

License

This repository is available as open source under the terms of the MIT License.

About

A collection of valid Ruby files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published