[Libreoffice-commits] core.git: Branch 'aoo/trunk' - basic/source

Damjan Jovanovic damjan at apache.org
Tue Dec 15 10:08:30 PST 2015


 basic/source/comp/loops.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cbd43d0cb1165add5b9b559c3608a93ea631da13
Author: Damjan Jovanovic <damjan at apache.org>
Date:   Tue Dec 15 17:31:31 2015 +0000

    #i126272# OpenOffice.org Basic compile error : if statement followed 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

diff --git a/basic/source/comp/loops.cxx b/basic/source/comp/loops.cxx
index 6a67804..d0544d1 100644
--- a/basic/source/comp/loops.cxx
+++ b/basic/source/comp/loops.cxx
@@ -130,7 +130,7 @@ void SbiParser::If()
             {
                 if( !Parse() ) break;
                 eTok = Peek();
-                if( eTok == EOLN )
+                if( eTok == EOLN || eTok == REM )
                     break;
             }
         }


More information about the Libreoffice-commits mailing list