From fd510b99125983c49d2fdf3abfb82686b29b2cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 23 Jan 2012 10:56:15 +0100 Subject: tools/sed-enums: read complex values --- tools/sed-enums | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sed-enums b/tools/sed-enums index 0c3987c..870e030 100644 --- a/tools/sed-enums +++ b/tools/sed-enums @@ -8,7 +8,7 @@ T;h # read again if { /^\s*\{/ b attrs # append each item -s/^\s*([A-Z0-9_]+)(\s*=\s*-?[0-9]+)?.*$/\1\2, / +s/^\s*([A-Z0-9_]+)(\s*=\s*[^,\/]+)?.*$/\1\2, / # goto next if subsitution fails, append pattern, loop T next;H;b attrs :next -- cgit v1.1-2-g2b99