mathworks / MATLAB-Language-grammar

This repository contains a regular expression based language grammar for MATLAB to be used by GitHub Linguist for highlighting MATLAB code on GitHub
50 stars 17 forks source link

Line continuation inside of `[]` breaks highlighting #18

Closed rlivings39 closed 4 years ago

rlivings39 commented 4 years ago

Reported in https://github.com/Gimly/vscode-matlab/issues/98. Looks like the last line is interpreted as command syntax rather than an element of []

y = [ ... a comment
    x, ... another comment
    z ... should be a comment
];
SimonMossmyr commented 4 years ago

Additional information from Gimly/vscode-matlab#98