coinbase / terraform-landscape

Improve Terraform's plan output to be easier to read and understand
Apache License 2.0
1.59k stars 116 forks source link

Fix Ruby 3 syntax errors #118

Closed SeekingMeaning closed 3 years ago

SeekingMeaning commented 3 years ago

The Ruby code generated by Treetop was creating methods with names such as _1 which are the tokens that correspond to the _ parser rule. This causes Ruby 2.7 to print warnings that _1, _2, etc. are reserved for numbered parameters. In Ruby 3, they are syntax errors.

This commit renames _ to ws so that the generated methods now have names such as ws1, ws2, etc.

Resolves #111

cb-heimdall commented 1 week ago

Review Error for BesBettison @ 2024-11-26 04:36:09 UTC User must have write permissions to review

cb-heimdall commented 4 days ago

Review Error for BesBettison @ 2024-11-29 08:31:23 UTC User must have write permissions to review