Ticket #314 (closed defect: fixed)
Comment block with extra opening tag supresses following code
Reported by: | nerdzero | Owned by: | Charles |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.3 |
Keywords: | tokenizer | Cc: |
Description
This ticket is similar to: http://cobra-language.com/trac/cobra/ticket/311
In the following code, the line .b = 2 is never executed.
class CommentBomb2 var a = 0 var b = 0 def main assert .a == 0 assert .b == 0 .foo assert .a == 1 assert .b == 2 def foo .a = 1 /# a quick and dirty expansion of an existing comment block /# the previous comment block #/ .b = 2
This issue has a workaround: Add an extra closing comment block.
Change History
Note: See
TracTickets for help on using
tickets.