mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01: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:
parent
6b42452b3b
commit
5c57631f69
@ -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
|
||||
(([^*]|\*(?!/))*)
|
||||
|
Loading…
Reference in New Issue
Block a user