summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorPierre Lepage <pierrelepage3@gmail.com>2016-11-05 14:52:44 -0400
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-01-25 11:42:18 +0000
commit65e294e221e0ad1d37c6667eecb995817ace870d (patch)
treeaecc3308088ce3c39e1b7be35eefffe101950cbc /basic/source
parent336764ad6b8f4d88ac579684c905c88c8c630bcd (diff)
tdf#80731 Closing parenthesis is now detected (Mid statement and functions).
Change-Id: I5efdb6c3ce71148672a8b76d3f1cc87b0fe04994 Reviewed-on: https://gerrit.libreoffice.org/30593 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 379b7ffb68bed5bc376a91032a781be147a6eff1) Reviewed-on: https://gerrit.libreoffice.org/33341 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/comp/exprtree.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index e7a2210ada0c..008976f1a7d6 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -1055,6 +1055,11 @@ SbiExprListPtr SbiExprList::ParseParameters( SbiParser* pParser, bool bStandalon
{
if( ( pExprList->bBracket && eTok == RPAREN ) || SbiTokenizer::IsEoln( eTok ) )
{
+ if ( SbiTokenizer::IsEoln( eTok ) && pExprList->bBracket)
+ {
+ pParser->Error( ERRCODE_BASIC_EXPECTED, RPAREN );
+ pExprList->bError = true;
+ }
break;
}
pParser->Error( pExprList->bBracket ? ERRCODE_BASIC_BAD_BRACKETS : ERRCODE_BASIC_EXPECTED, COMMA );