sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
http://sphinxcontrib-matlabdomain.readthedocs.io/
Other
70 stars 45 forks source link

property defaults should be documented correctly, if number shown as number, etc. #2

Closed joeced closed 6 years ago

joeced commented 10 years ago

Originally reported by: Mark Mikofski (Bitbucket: bwanamarko, GitHub: Unknown)


currently property default values are shown as unicode strings. that means a number has quotes, and if string then it has double quotes.


joeced commented 6 years ago

Original comment by Mark Mikofski (Bitbucket: bwanamarko, GitHub: Unknown):


add @property doc returns docstring

joeced commented 10 years ago

Original comment by Mark Mikofski (Bitbucket: bwanamarko, GitHub: Unknown):


the issue is that they are read in with their quotes if they are string literals, hence the double quotes.

Checking token types for primitive literals is fine, but for matlab arrays and more complicated property defaults, it could get tricky

proposal: