diff options
Diffstat (limited to 'lib9p/idl/__init__.py')
-rw-r--r-- | lib9p/idl/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib9p/idl/__init__.py b/lib9p/idl/__init__.py index 6fa26b4..78246d2 100644 --- a/lib9p/idl/__init__.py +++ b/lib9p/idl/__init__.py @@ -297,7 +297,7 @@ re_expr = f"(?:(?:-|\\+|[0-9]+|&?{re_symname})+)" re_numspec = f"(?P<name>{re_symname})\\s*=\\s*(?P<val>\\S+)" re_bitspec_bit = ( - "(?P<bitnum>[0-9]+)\\s*=\\s*(?:" + "bit\\s+(?P<bitnum>[0-9]+)\\s*=\\s*(?:" + "|".join( [ f"(?P<name_used>{re_symname_u})", @@ -307,7 +307,7 @@ re_bitspec_bit = ( ) + ")" ) -re_bitspec_alias = f"(?P<name>{re_symname_u})\\s*=\\s*(?P<val>\\S+)" +re_bitspec_alias = f"alias\\s+(?P<name>{re_symname_u})\\s*=\\s*(?P<val>\\S+)" re_memberspec = f"(?:(?P<cnt>{re_symname}|[1-9][0-9]*)\\*\\()?(?P<name>{re_symname})\\[(?P<typ>{re_memtype})(?:,max=(?P<max>{re_expr})|,val=(?P<val>{re_expr}))*\\]\\)?" |