Skip to content
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

enumerations and events cause premature end of m-file parsing #79

Closed
goszpeti opened this issue Sep 28, 2018 · 1 comment
Closed

enumerations and events cause premature end of m-file parsing #79

goszpeti opened this issue Sep 28, 2018 · 1 comment

Comments

@goszpeti
Copy link

If an m-file class contains enumerations and events, the file parsing will end at that declaration.
example code:

class myclass

enumeration 
MYENUM
end

function myfunc()
end
end

myfunc() will not be parsed.
I already found the culprit for this in mat_types.py at lines 964 and 974 (version 0.34).
idx is not increased after exiting the while loop, so the next end will be considered as the class definitions end.

joeced added a commit that referenced this issue Sep 28, 2018
@joeced
Copy link
Collaborator

joeced commented Sep 28, 2018

Thanks for the detailed report, it was very easy to find the error.

Fixed in version 0.3.5 (https://github.com/sphinx-contrib/matlabdomain/releases/tag/0.3.5)

@joeced joeced closed this as completed Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants