diff libinterp/parse-tree/lex.h @ 30320:c41fec3367b0

new lexer utility function, warn_deprecated_syntax * lex.h, lex.ll (base_lexer::warn_deprecated_syntax): New function. (<DQ_STRING_START>(\.\.\.){S}*{NL}): Use it. (<DQ_STRING_START>\\{S}+{NL}): Likewise. (\\{S}*{NL}|\\{S}*{CCHAR}{ANY_EXCEPT_NL}*{NL}): Likewise.
author John W. Eaton <jwe@octave.org>
date Mon, 22 Nov 2021 15:41:42 -0500
parents a471bf0f78ba
children 2ba4758654ca
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h	Mon Nov 22 16:41:21 2021 +0100
+++ b/libinterp/parse-tree/lex.h	Mon Nov 22 15:41:42 2021 -0500
@@ -691,6 +691,8 @@
 
     void warn_language_extension_operator (const std::string& op);
 
+    void warn_deprecated_syntax (const std::string& msg);
+
     void push_token (token *);
 
     token * current_token (void);