It looks like an Array of { key: value } Hashes blows up the parser if the key: value parts don't have { } around them. It's valid Ruby either way, but the parser requires the braces.
To reproduce:
Create a file with these lines:
module MyModule
TEST_DATA = [
{ foo_id1: '1111' }, # Works
foo_id2: '2222', # Fails
]
end
It looks like an Array of
{ key: value }
Hashes blows up the parser if thekey: value
parts don't have{ }
around them. It's valid Ruby either way, but the parser requires the braces.To reproduce:
ripper-tags PATH_TO_FILE_ABOVE