bugGNU Octave - Bugs: bug #41048, error parsing beyond inline...

 
 

bug #41048: error parsing beyond inline comment after line continuation with char constant

Submitter:  Garrett <g2e>
Submitted:  Tue 31 Dec 2013 08:52:57 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Jan 2014 06:41:30 AM UTC, comment #3: 

I checked in the following changeset:

  http://hg.savannah.gnu.org/hgweb/octave/rev/1f072ae35ede

This seems to fix the problem for me and will be part of the 3.8.1 release.

John W. Eaton <jwe>
Group administrator
Fri 03 Jan 2014 05:58:19 AM UTC, comment #2: 

and it's specific to single quotes -- double quotes work:

>> a = [97 ... %hi

"b"]

a = ab

Felipe G. Nievinski <fgnievinski>
Thu 02 Jan 2014 05:01:03 PM UTC, comment #1: 

Confirmed.  I added the fact that this only happens with a character constant as the second line to the bug summary.

This works


a = ['a' ... %hi
98];


but the following does not


a = [97 ... %hi
'b'];



Rik <rik5>
Group administrator
Tue 31 Dec 2013 08:52:57 PM UTC, original submission:  

Just getting 3.8.0 installed on Fedora 20 and while testing a few of my scripts I noticed a regression in parsing char/cell arrays made with line continuations and inline comments.  A couple simple examples:


octave:1> a=['a' ... % hi
> 'b'];
parse error:

  syntax error

>>> 'b'];
      ^

octave:1> a={'a' ... % hi
> 'b'};
parse error:

  syntax error

>>> 'b'};
      ^


Under 3.6.4 these commands parse without error or issue.  As an aside, inline comments in numeric arrays appear to work as expected in 3.8.0:


octave:1> a=[1 ... % hi
> 2];
octave:2> a
a =

   1   2

octave:3>



Garrett <g2e>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by fgnievinski (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by g2e (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-08 jwe StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-01-02 rik5 StatusNone Confirmed
        Summaryerror parsing beyond inline comment after line continuation error parsing beyond inline comment after line continuation with char constant

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code