#11621: Preparser could accomodate multiline input and continuation lines
------------------------------+---------------------------------------------
   Reporter:  rbeezer         |          Owner:  was       
       Type:  enhancement     |         Status:  new       
   Priority:  minor           |      Milestone:  sage-4.7.2
  Component:  user interface  |       Keywords:            
Work_issues:                  |       Upstream:  N/A       
   Reviewer:                  |         Author:            
     Merged:                  |   Dependencies:            
------------------------------+---------------------------------------------

Comment(by jason):

 Notice also this inconsistency dealing with multiline statements starting
 with comments, caused by an early-abort statement in the preparser:

 {{{
 sage: preparse("""x^2\n# test\nx^2""")
 'x**Integer(2)\n# test\nx**Integer(2)'
 sage: preparse("""# test\nx^2""")
 '# test\nx^2'
 }}}

 Note that if the string starts with a comment, everything is ignored
 after the comment.  However, if the statement does not start with a
 comment, things are preparsed even after the comment.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11621#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to