Reputation: 26838
I found in Ruby's documentation that C-style comments are supported:
You can insert comment about all places. Two style comment can be used, Ruby style (#.….) and C style ( .….. ) .
Does this mean that Ruby supports /*
and */
? When I try it, it comes with an error:
target of repeat operator is not specified: /*
test
*/
Upvotes: 0
Views: 168
Reputation: 198324
That is not a grammar for Ruby, but a grammar for Racc (a Ruby equivalent of yacc). Just like yacc files are not C, Racc files are not Ruby.
Upvotes: 6