Mercurial > octave
changeset 32896:82b67791bf1b stable
make help for classde work again (bug #65220)
* oct-parse.yy (classdef): Undo unintentional change in position of
first stash_comment non-terminal in rule made in changeset
80d3a6abfc4d.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 01 Feb 2024 01:15:15 -0500 |
parents | 2faec354b977 |
children | 212bb363f1fa 4d24afc1d32b |
files | libinterp/parse-tree/oct-parse.yy |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Mon Jan 29 00:08:00 2024 -0500 +++ b/libinterp/parse-tree/oct-parse.yy Thu Feb 01 01:15:15 2024 -0500 @@ -1845,11 +1845,11 @@ } ; -classdef : classdef_beg attr_list identifier opt_sep stash_comment superclass_list stash_comment class_body END +classdef : classdef_beg stash_comment attr_list identifier opt_sep superclass_list stash_comment class_body END { OCTAVE_YYUSE ($4); - octave::comment_list *lc = $5; + octave::comment_list *lc = $2; octave::comment_list *tc = lexer.get_comment (); if (lexer.m_classdef_help_text.empty () && $7 && ! $7->empty ()) @@ -1860,10 +1860,10 @@ lexer.m_parsing_classdef = false; - if (! ($$ = parser.make_classdef ($1, $2, $3, $6, $8, $9, + if (! ($$ = parser.make_classdef ($1, $3, $4, $6, $8, $9, lc, tc))) { - // make_classdef deleted $2, $3, $6, $8, LC, and + // make_classdef deleted $3, $4, $6, $8, LC, and // TC. YYABORT; }