Support parsing of intializers containing macros with arguments. (#129717)

Fri Feb 27 01:49:22 2004  Matthias Clasen  <maclas@gmx.de>

	* glib-mkenums.in: Support parsing of intializers containing
	macros with arguments.  (#129717)
This commit is contained in:
Matthias Clasen 2004-02-27 00:49:56 +00:00 committed by Matthias Clasen
parent 6b42452b3b
commit 5c57631f69

View File

@ -83,7 +83,9 @@ sub parse_entries {
if (m@^\s*
(\w+)\s* # name
(?:=( # value
(?:[^,/]|/(?!\*))*
\s*\w+\s*\(.*\)\s* # macro with multiple args
| # OR
(?:[^,/]|/(?!\*))* # anything but a comma or comment
))?,?\s*
(?:/\*< # options
(([^*]|\*(?!/))*)