Revision: 1282 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1282&view=re... Author: colombanw Date: 2010-04-22 15:06:22 +0000 (Thu, 22 Apr 2010)
Log Message: ----------- GeanyGenDoc: C configuration: fix match of empty argument list
Cleanly support completely empty argument lists (foo()) used e.g. in macros with no arguments.
Modified Paths: -------------- trunk/geanygendoc/data/filetypes/c.conf
Modified: trunk/geanygendoc/data/filetypes/c.conf =================================================================== --- trunk/geanygendoc/data/filetypes/c.conf 2010-04-22 15:05:57 UTC (rev 1281) +++ trunk/geanygendoc/data/filetypes/c.conf 2010-04-22 15:06:22 UTC (rev 1282) @@ -5,8 +5,8 @@ # # Detailed expression: #function_args=(?: - # matches (void) not to try to extract an argument for it - # ^([ \t]*void[ \t]*)$ + # matches () and (void) not to try to extract an argument for them + # ^([ \t]*(?:void)?[ \t]*)$ # | # type or modifier (e.g. "char *") # (?:[a-zA-Z0-9_]+[ \t*]+ @@ -26,7 +26,7 @@ # (?:,|$) # ) # note that \ are escaped, so to have a \ you need to put \ - match_function_arguments = "(?:^\([ \t]*void[ \t]*\)$|(?:[a-zA-Z0-9_]+[ \t*]+(?:\([ \t*]*)?)*([a-zA-Z0-9_.]+)(?:[ \t]*\))?[ \t]*(?:\([^)]*\))?[^,]*(?:,|$))"; + match_function_arguments = "(?:^\([ \t]*(?:void)?[ \t]*\)$|(?:[a-zA-Z0-9_]+[ \t*]+(?:\([ \t*]*)?)*([a-zA-Z0-9_.]+)(?:[ \t]*\))?[ \t]*(?:\([^)]*\))?[^,]*(?:,|$))";
# global env global_environment = "doxygen_prefix = "@";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.