changeset 28321:e10c25dd27f1 stable

fix printing of dynamic field names when printing parse tree * pt-pr-code.cc (tree_print_code::visit_index_expression): Print ".(" instead of "(" for dynamic field names.
author John W. Eaton <jwe@octave.org>
date Mon, 18 May 2020 13:38:54 -0400
parents 08229481b65f
children db86874f8a6f f6f87fff82f9
files libinterp/parse-tree/pt-pr-code.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-pr-code.cc	Mon May 18 12:32:17 2020 -0400
+++ b/libinterp/parse-tree/pt-pr-code.cc	Mon May 18 13:38:54 2020 -0400
@@ -543,7 +543,7 @@
                   if (df)
                     {
                       m_nesting.push ('(');
-                      m_os << "(";
+                      m_os << ".(";
                       df->accept (*this);
                       m_os << ")";
                       m_nesting.pop ();