|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #60882] error parsing command syntax |
Date: | Mon, 5 Jul 2021 13:28:25 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Update of bug #60882 (project octave): Summary: Parse error => error parsing command syntax _______________________________________________________ Follow-up Comment #6: This error was introduced with changeset 6858992dfadf because "diary" was being added as a variable name in the expression job.diary = ... because the name was followed by '='. I think the attached change will help. While looking at this, I realized that there are some other issues that need to be fixed to properly reset the parser and lexer state when parsing nested functions. For example, Octave will fail to parse the following even though the "warning" variable inside the nested function should be local. Some more work needs to be done to properly track the status of identifiers as variables in contexts like this. function main () function nested () warning = 1; ... end warning off all end -verbatim (file #51648) _______________________________________________________ Additional Item Attachment: File name: mark-as-var-patch.txt Size:2 KB <https://file.savannah.gnu.org/file/mark-as-var-patch.txt?file_id=51648> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60882> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |