Update to m13
[ooovba.git] / applied_patches / 0415-fix-lineconintue.diff
bloba3fe0c3e6a3ad5cd749b5a43be0079f3034763ce
1 diff --git basic/source/comp/scanner.cxx basic/source/comp/scanner.cxx
2 index c7fb06c..49e512e 100644
3 --- basic/source/comp/scanner.cxx
4 +++ basic/source/comp/scanner.cxx
5 @@ -479,7 +479,17 @@ PrevLineCommentLbl:
6 eoln:
7 if( nCol && *--pLine == '_' )
9 - pLine = NULL; return NextSym();
10 + pLine = NULL;
11 + bool bRes = NextSym();
12 + if ( bVBASupportOn && aSym.GetBuffer()[0] == '.' )
13 + {
14 + // object _
15 + // .Method
16 + // ^^^ <- spaces is legal in MSO VBA
17 + OSL_TRACE("*** resetting bSpaces***");
18 + bSpaces = FALSE;
19 + }
20 + return bRes;
22 else