JamesRitchie / language-matlab

MATLAB/Octave language support for Atom
15 stars 9 forks source link

Transposition operator breaks code highlighting #22

Open vr050714 opened 8 years ago

vr050714 commented 8 years ago

Transposition operator (prime symbol) breaks code highlighting. Probably it is considered as part of string literal.

daylightbrightledlight commented 7 years ago

On Atom, the transpose operator doesn't seem to work properly after using parentheses. After typing a = sum(X') and then adding the transpose operator ' after the parenthesis, it adds two transpose operators instead, resulting in a = sum(X')'' (with an extra ' at the end) instead of a = sum(X')'. The variable X doesn't highlight either.

a = sum(X')'
rlivings39 commented 4 years ago

Some highlighting issues with ' were fixed in the package https://atom.io/packages/language-matlab-octave. That's still being maintained for MATLAB syntax highlighting fixes. It uses the shared highlighting grammar: https://github.com/mathworks/MATLAB-Language-grammar/