diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-28 11:03:37 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-29 18:21:22 -0600 |
commit | fc462d13cb2f49b4c4745742dfaed994596a54b8 (patch) | |
tree | 3c78506ca4289822b65a9bdf1731edb888e9eb47 /lib9p/idl/__init__.py | |
parent | 0b31e9fa29699bbf140e168a17ead1c993d42e3e (diff) |
lib9p: idl: In bitfields, explicitly say "bit" or "alias"
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}))*\\]\\)?" |