-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quote is not recognized as transpose after a closing curly brace #108
Comments
Unfortunately I cannot print the line number currently. The MATLAB source is parsed into tokens (with no knowledge of position). In your examples I looked at |
I found a minimal test case for that bug: classdef CommutantVar
methods
function self = CommutantVar
A{i} = (A{i} + A{i}.')/2;
A{i} = (A{i} + A{i}')/2;
end
end
end which I guess is related to the lexing/parsing of single quote characters. |
For some reason, the above code is not parsed correctly from Sphinx after the correction, but is parsed successfully when calling directly |
See also the Matlab TM syntax where this was discussed ( mathworks/MATLAB-Language-grammar#10 ). The current regexp is: |
Thanks a lot for the contribution. I'll make a new release tonight when I'm home. |
@joeced as mentioned above, tests are failing and I'm at a loss to explain why! |
I get a few warnings:
and those files are valid MATLAB code. How can I get the line number where the parsing fails?
Attached the three files that can't be parsed.
src.zip
The text was updated successfully, but these errors were encountered: