documenting bash function with dots and dashes inside

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

documenting bash function with dots and dashes inside

Alexander.Elgert

Hello,

 

I asked this question on the doxygen users list, but without any luck.

It would be nice if this little feature could be added to the doxygen code to parse bash functions correctly.

Besides of this little parser problem it works like a charm!

 

I found a little doxygen filter for bash functions:

 

http://www.cbica.upenn.edu/sbia/software/basis/apidoc/v1.0/doxyfilter-bash_8py_source.html

 

After a few changes, it works really fine for my sources (60_000 loc).

(Attached, plus Example file)

 

But there is a thing, which is really annoying, there are tons of bash-functions, which uses a dot or a minus in the function name (which is allowed in bash), for example:

 

function e.() {

      echo "hello"

}

 

function e-e() {

      echo "foo"

}

 

Is there a chance to add the dot and the minus for function names, so that doxygen is able to parse these names correctly?

It would be very helpful.

 

Thank you.

 

Best regards,

Alexander Elgert

 


------------------------------------------------------------------------------

_______________________________________________
Doxygen-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop

zbashrc2_test (986 bytes) Download Attachment
doxyfilter-bash.py (9K) Download Attachment