gosukiwi / Blueberry

A beautiful programming language with clean syntax which compiles to PHP
MIT License
63 stars 10 forks source link

Not everything supports comments #27

Closed hikari-no-yume closed 9 years ago

hikari-no-yume commented 10 years ago

I understand that there are limitations due to preserving comments in output, so we can't just discard them in a preprocessing stage. But there are some pretty egregious cases, these two in particular:

def foo # test
  if test # test
  end
end
gosukiwi commented 10 years ago

This should be fixed in the grammar, right now all comments must be in their own line, which is most of the time what you want as adding them late in a line might make it not so visible.