diff options
author | Joakim Sindholt <opensource@zhasha.com> | 2009-10-15 07:00:03 +0200 |
---|---|---|
committer | Joakim Sindholt <opensource@zhasha.com> | 2009-10-15 07:00:03 +0200 |
commit | 7a4c9b9dd57dcf427d289fa83de1f5d1ce20a211 (patch) | |
tree | b658808783f637609b4726dfcb32dbe68e72edc1 | |
parent | 0a88af262ded1d127af310cd7c092ece527dc7f7 (diff) |
doc2xml: fix a serious regex problem
-rwxr-xr-x | doc2xml/radeonreg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc2xml/radeonreg.py b/doc2xml/radeonreg.py index a7df640..1043884 100755 --- a/doc2xml/radeonreg.py +++ b/doc2xml/radeonreg.py @@ -137,7 +137,7 @@ def AddEnum(e): enum_regex = re.compile('(\d\d?)( - | ?: |=)((?:(?!\d\d?(?: - | ?: |=)).)*)', re.DOTALL) enum_desc = re.compile('(\d\d?( - | ?: |=)|POSSIBLE VALUES:)') enum_pv = re.compile('POSSIBLE VALUES:') -enum_pvregex = re.compile('(\d\d?)( - |: |=)(.*)') +enum_pvregex = re.compile('\n(\d\d?)( - | ?: |=)((?:(?!\n\d\d?(?: - | ?: |=)).)*)', re.DOTALL) enum_ename = re.compile('([A-Za-z0-9_]*)') reserved_regex = re.compile('[Rr][Ee][Ss][Ee][Rr][Vv][Ee][Dd]') def ExtractEnum(s): |