summaryrefslogtreecommitdiff
path: root/basic/source/comp/parser.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-06-24 15:02:11 +0000
committerKurt Zenker <kz@openoffice.org>2008-06-24 15:02:11 +0000
commit765079517b873ceff6071a2e8e7516825e2d543d (patch)
tree15b65628cc83de5df726bdbe2c5db9e59fe82d0e /basic/source/comp/parser.cxx
parentbed87d6e1edfe59f6f49c97fb27705d44655d8a7 (diff)
INTEGRATION: CWS ab48 (1.22.54); FILE MERGED
2008/06/10 05:10:05 ab 1.22.54.2: RESYNC: (1.22-1.23); FILE MERGED 2008/04/01 09:20:30 ab 1.22.54.1: #i79918#, #i80532# New parameter handling
Diffstat (limited to 'basic/source/comp/parser.cxx')
-rw-r--r--basic/source/comp/parser.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index 0ed2338eaa..6880f704e6 100644
--- a/basic/source/comp/parser.cxx
+++ b/basic/source/comp/parser.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: parser.cxx,v $
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
* This file is part of OpenOffice.org.
*
@@ -391,7 +391,7 @@ BOOL SbiParser::Parse()
Next();
Push( eCurTok );
aGen.Statement();
- Symbol();
+ Symbol();
}
}
else
@@ -476,9 +476,13 @@ SbiExprNode* SbiParser::GetWithVar()
void SbiParser::Symbol()
{
- SbiExpression aVar( this, SbSYMBOL );
+ SbiExprMode eMode = bVBASupportOn ? EXPRMODE_STANDALONE : EXPRMODE_STANDARD;
+ SbiExpression aVar( this, SbSYMBOL, eMode );
bool bEQ = ( Peek() == EQ );
+ if( !bEQ && bVBASupportOn && aVar.IsBracket() )
+ Error( SbERR_EXPECTED, "=" );
+
RecursiveMode eRecMode = ( bEQ ? PREVENT_CALL : FORCE_CALL );
bool bSpecialMidHandling = false;
SbiSymDef* pDef = aVar.GetRealVar();