Skip to content

Commit

Permalink
#i126272# OpenOffice.org Basic compile error : if statement followed …
Browse files Browse the repository at this point in the history
…by End If - in next Line ???

Allow the Else in a single-line If statement to be terminated by a comment instead of only EOL.

Patch by: me



git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1720205 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Damjan Jovanovic committed Dec 15, 2015
1 parent 710acb7 commit 0739618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/basic/source/comp/loops.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void SbiParser::If()
{
if( !Parse() ) break;
eTok = Peek();
if( eTok == EOLN )
if( eTok == EOLN || eTok == REM )
break;
}
}
Expand Down

0 comments on commit 0739618

Please sign in to comment.