2
$\begingroup$

I found this strange parsing error with comments inside of an expression in Version 7. And example is

{{1, x}, {1, y} (* {1, z (= 5+6)} *)};

It occurs depending on the spacing before and after the z. Playing with deleting and reinserting a blank on those positions makes it pop up after some time, and it can be corrected the same way. Here a screenshot:

enter image description here

Is this a feature of a bug?

$\endgroup$
8
  • $\begingroup$ I do not have this problem in version 7.0.1 under Windows. What is your exact version and OS? $\endgroup$
    – Mr.Wizard
    Commented Oct 16, 2014 at 19:50
  • $\begingroup$ @Mr.Wizard: V.7.0.0 on a macbook, OS X 10.9.3, and I have to play a little till it pops up. $\endgroup$
    – Nikolaj-K
    Commented Oct 16, 2014 at 20:22
  • $\begingroup$ Please define "play a little" as I wish to attempt to recreate the problem. Is there a reason you have not updated to 7.0.1? It should be a free upgrade to you; if you get the installer it should recognize your existing license without issue. $\endgroup$
    – Mr.Wizard
    Commented Oct 16, 2014 at 20:25
  • $\begingroup$ "play a little": At the position I indicated, switching between ", z (", ",z (", " ,z(", ",z(" in various orders and hitting return each time. And I'm not a computer person, I don't like to update things that work because sometimes there is something to fix afterwards, while I didn't think of wanting something new anyway. $\endgroup$
    – Nikolaj-K
    Commented Oct 16, 2014 at 20:32
  • $\begingroup$ For what it's worth point releases (7.0 -> 7.0.1) usually fix bugs without introducing significant functionality therefore they are (I believe) reasonably safe to install. If you still have the 7.0.0 installer you can revert if necessary. $\endgroup$
    – Mr.Wizard
    Commented Oct 16, 2014 at 20:38

1 Answer 1

2
$\begingroup$

It is not a parsing error. It is a minor code editor code-coloring bug. The have been a lot of them over various Mathematica releases. You will even see some in the Documentation Center examples. The one you report here was already corrected in V9 (the oldest version still available to me).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.