/* */ Style comments cause error when in the middle of a line #255

programble opened this Issue Nov 18, 2010 · 2 comments


None yet
4 participants

programble commented Nov 18, 2010

In C it is perfectly valid to do this:

x = /* foobar */ baz;

In ooc, something like this:

x := /* foobar */ baz

causes a malformed statement error.

Shouldn't the encounter of a /* cause the parser to skip over text until a */ is found, regardless of where the comment is?


duckinator commented May 18, 2011

Verified just now that (with rock HEAD) this still exists. This is helpful for testing, so I would like it to work.


alexnask commented May 18, 2011

This is strange I thought I saw a line like that in an sdk line... Though as I recall it was not a decl/assign/declassign but a method call... Not sure though :P

nddrylliog pushed a commit to ooc-lang/nagaqueen that referenced this issue May 19, 2011

Fix for ooc-lang/rock#255 - allow multiline comments anywhere whitesp…
…ace is permitted. It doesn't even make rock compilation much longer!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment