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

 
 

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

Submitted by:  Garrett <g2e>
Submitted on:  Tue 31 Dec 2013 08:52:57 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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

but the following does not

Rik <rik5>
Project 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:

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:

Garrett <g2e>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Jan 2014 06:41:30 AM UTCjweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 02 Jan 2014 05:01:03 PM UTCrik5StatusNone=>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.1-cleanup1