Closed Delja closed 5 years ago
class A
fun bar
is
# foo comment
foo
# bar comment
bar
do
end
end
Feel free to reopen if I misunderstood your issue.
I'd believe the aforementioned code should not provoke a syntax error as we have a single comment on a separate line, this definitely triggers my non POLA radar; the grammar should probably accept this @privat what do you think?
@Morriar my problem, it's the grammar should be normally accept a "free" comment in an annotation block without causing a syntax error. The same as it's possible to put a comment without link it to a method. example:
class A
# Some comments blabla
# [....]
fun bar
do
end
end
Currently annotation comment is not allowed. Example :
This code make an
Syntax Error: unexpected keyword 'do'.