diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-07-14 13:40:45 +0200 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-07-14 13:40:45 +0200 |
commit | 0e880cfd4b2180d9ecade3d00608c446ccdf77c2 (patch) | |
tree | e5fc83099dba320e6df5d7ece93744faa18eec15 /rsc | |
parent | 96be84bf43e4760a82c90dfdfe90816a26932e2f (diff) |
vcl113: #i43066# handle string concatenations in lexer
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/parser/rsclex.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index e0df5de254f9..cc5bd0eb39b4 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -175,11 +175,16 @@ int MakeToken( YYSTYPE * pTokenVal ){ c = pFI->GetFastChar(); if( c == '"' ) { - c = pFI->GetFastChar(); + do + { + c = pFI->GetFastChar(); + } + while( isblank( c ) ); if( c == '"' ) { - aBuf.append( '"' ); - aBuf.append( '"' ); + // this is a continued string + // note: multiline string continuations are handled by the parser + // see rscyacc.y } else bDone = TRUE; |