You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gets highlighted as follows (example in SO):
Note the x40 and x4. I would either expect everything to be black, or all numbers to be brown and x's to be black.
The text was updated successfully, but these errors were encountered:
Actually I think the highlighted output is not wrong here!
You see prettify-matlab is expected to highlight valid MATLAB code, but the snippet you showed is not correct code in itself, rather an output of some function (disp in this case).
Obviously if you attempt to run it in MATLAB prompt you get an error as you'd expect:
i.e there's a number 1 followed by a token/variable called x40, whitespace and then the double type, all contained in an array definition [..]. I don't see how else the expression could be parsed...
When
display
ing astruct
containing non-scalar arrays, something like the following is printed out:This gets highlighted as follows (example in SO):
Note the
x40
andx4
. I would either expect everything to be black, or all numbers to be brown andx
's to be black.The text was updated successfully, but these errors were encountered: