diff libinterp/parse-tree/lex.h @ 28264:d938c4d22200 stable

handle comments in multi-line statements with push parser/lexer (bug #58198) * lex.h, lex.ll (base_lexer::pending_token_count): New function. (<LINE_COMMENT_START>{ANY_INCLUDING_NL}): Use it to determine whether to return expecting more input or as if a complete statement has been parsed.
author John W. Eaton <jwe@octave.org>
date Tue, 05 May 2020 01:01:39 -0400
parents 22cddebcb0d0
children 808e3964987b
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h	Mon May 04 11:49:06 2020 -0400
+++ b/libinterp/parse-tree/lex.h	Tue May 05 01:01:39 2020 -0400
@@ -697,6 +697,8 @@
 
     token * current_token (void);
 
+    size_t pending_token_count (void) const;
+
     void display_token (int tok);
 
     void fatal_error (const char *msg);