diff options
Diffstat (limited to 'basic/source/comp/token.cxx')
-rw-r--r-- | basic/source/comp/token.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index 63c98678fcdc..0ed663678a57 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -401,6 +401,15 @@ special: return eCurTok = SYMBOL; else if( tp->t == TEXT ) return eCurTok = SYMBOL; + // maybe we can expand this for other statements that have parameters + // that are keywords ( and those keywords are only used within such + // statements ) + // what's happening here is that if we come across 'append' ( and we are + // not in the middle of parsing a special statement ( like 'Open') + // we just treat keyword 'append' as a normal 'SYMBOL'. + // Also we accept Dim APPEND + else if ( ( !bInStatement || eCurTok == DIM ) && tp->t == APPEND ) + return eCurTok = SYMBOL; // #i92642: Special LINE token handling -> SbiParser::Line() |