From 3c83effd40e20837bf1ad00e57ed3e5560aa5774 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 17 Jun 2016 23:54:05 +1000 Subject: [PATCH] Tolerate lowercase hex digits in enumerants, in addition to 0-9, A-F --- auto/bin/parse_spec.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/bin/parse_spec.pl b/auto/bin/parse_spec.pl index 5142230..2f7b6eb 100755 --- a/auto/bin/parse_spec.pl +++ b/auto/bin/parse_spec.pl @@ -149,7 +149,7 @@ my %regex = ( prefix => qr/^(?:[aw]?gl|glX)/, # gl | agl | wgl | glX tprefix => qr/^(?:[AW]?GL|GLX)_/, # GL_ | AGL_ | WGL_ | GLX_ section => compile_regex('^(', join('|', @sections), ')$'), # sections in spec - token => qr/^([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-F]+)([^\?]*)$/, # define tokens + token => qr/^([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-Fa-f]+)(|\s[^\?]*)$/, # define tokens types => compile_regex('\b(', join('|', keys %typemap), ')\b'), # var types voidtype => compile_regex('\b(', keys %voidtypemap, ')\b '), # void type );