octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58198] Comments not being parsed correctly in


From: anonymous
Subject: [Octave-bug-tracker] [bug #58198] Comments not being parsed correctly in REPL
Date: Fri, 17 Apr 2020 13:03:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

URL:
  <https://savannah.gnu.org/bugs/?58198>

                 Summary: Comments not being parsed correctly in REPL
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 17 Apr 2020 05:03:17 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

During debugging a script it's common to copy-paste snippets of code to the
Octave command prompt (REPL) for live evaluation. This used to work but now
triggers a parse error with full-line comments.

This causes an error:

for i = 1:10
  # i represents the index
  disp(i)
end


Moving the comment to the end of the line is OK:

for i = 1:10
  disp(i) # i represents the index
end


Both of the above work as intended in scripts and function files. Only the
REPL is affected.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58198>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]