Ticket #311 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Stand-alone inline comment suppresses any following code

Reported by: nerdzero Owned by:
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.9.3
Keywords: tokenizer Cc:


Cobra svn:2883 (post 0.9.3) / 2012-12-14 on Mono CLR v4.0.30319 on Ubuntu 12.10

Despite the simplicity of the sample code, in a complex program this bug is incredibly difficult to find. I spent about two hours on this before I finally figured out what was causing the issue.

class CommentBomb
    def main
        print 'hello'
        /# an innocent looking comment #/
        print 'goodbye'



I tried to fix it but couldn't quite figure out what was going on. It looks like a COMMENT_BLOCK_START is getting consumed instead of an INLINE_COMMENT by CobraTokenizer.

Change History

Changed 6 years ago by Charles

fix coming shortly

Changed 6 years ago by Charles

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:2884. Thanks for the report.

Note: See TracTickets for help on using tickets.