mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
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:
committed by
Matthias Clasen
parent
6b42452b3b
commit
5c57631f69
@@ -83,7 +83,9 @@ sub parse_entries {
|
|||||||
if (m@^\s*
|
if (m@^\s*
|
||||||
(\w+)\s* # name
|
(\w+)\s* # name
|
||||||
(?:=( # value
|
(?:=( # value
|
||||||
(?:[^,/]|/(?!\*))*
|
\s*\w+\s*\(.*\)\s* # macro with multiple args
|
||||||
|
| # OR
|
||||||
|
(?:[^,/]|/(?!\*))* # anything but a comma or comment
|
||||||
))?,?\s*
|
))?,?\s*
|
||||||
(?:/\*< # options
|
(?:/\*< # options
|
||||||
(([^*]|\*(?!/))*)
|
(([^*]|\*(?!/))*)
|
||||||
|
Reference in New Issue
Block a user