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

Add stanza to match variable assignments #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

awmyhr
Copy link

@awmyhr awmyhr commented Nov 19, 2016

Hello, in writing POSIX-compliant scripts, we are unable to use the 'declare' syntax, thus I have added a stanza to match simple variable assignments. Variables matched in this way are given a type of 'String'. This allows Doxygen to catch and add these to generated documentation. Though it almost certainly results in multiple matches, in my (admittedly limited) testing, the end-result looks fine.

Though this project is 'bash-doxygen' and not 'posix-doxygen', I believe this to be of value to many bash users as well, since it is not really common practice to use the 'declare' keyword from what I have seen.

Added stanza to match variable assignments.
This is specifically to be more useful to POSIX-compliant scripts where
'declare' is not a thing. All variables matched this way are set as
type 'String'. Though this does likely match the same variable more than
once, that does not appear to be an issue in the end product.
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

Successfully merging this pull request may close these issues.

1 participant