I am integrating aspell it into my GNU Octave/Matlab development and release workflow in order to check comments and string literals for errors. Therefore, I define the following mode file
In general this works fine, but I ran into trouble with the following MATLAB/GNU Octave file:
% This is a comment, which works fine.
% Even with an ' inside this is not a problem.
str = 'erors in strings are not a problem as well'
A = QBE'*X; % But this eror is a problem.
In the last case ' denotes the transpose of an object (which is a part of the MATLAB/GNU Octave language), but not the beginning of a valid context. How can a context be constructed, such that the last case works properly as well.
I am integrating
aspell
it into my GNU Octave/Matlab development and release workflow in order to check comments and string literals for errors. Therefore, I define the following mode fileIn general this works fine, but I ran into trouble with the following MATLAB/GNU Octave file:
In the last case
'
denotes the transpose of an object (which is a part of the MATLAB/GNU Octave language), but not the beginning of a valid context. How can a context be constructed, such that the last case works properly as well.