https://bz.apache.org/ooo/show_bug.cgi?id=126272

--- Comment #4 from mroe <[email protected]> ---
It seems <comment><newline> is treated like a colon.

Sub Foo1( A as Integer )
    If A > 2 Then MsgBox( 0 ) Else MsgBox( 1 )  'comment
    MsgBox( 2 )                                 'comment
    MsgBox( 3 )                   
End Sub

Sub Foo2( A as Integer )
    If A > 2 Then MsgBox( 0 ) Else MsgBox( 1 ) : MsgBox( 2 ) : MsgBox( 3 )      
End Sub

Foo1 and Foo2 gives the same result.


But nevertheless the parser should give an error if /If/ and /Else/ in one line
or it should simply stop at the comment.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to