In a function if you have -- abc'def it seems as though the proceeding method is bundled in the current one (ie. the next method doesn't get its own entity).
Need to debug some more but solution could be to do a regexp replace on all -- with a ' in them.
Update: This seems to also affect q functions. Ex: l_x := q'! doesn't!'; will cause it.