From ab2bed349b356b4784e1a6c8fdf6f4a86e27f543 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 4 Apr 2007 23:19:32 +0000 Subject: [PATCH] Fix a regular expression problem when recognizing labels for string substitution. --HG-- extra : convert_revision : ba398e1b434efda28882f159d5a4419302276371 --- src/arch/isa_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py index 0cb7bfc56..4c8d0706d 100755 --- a/src/arch/isa_parser.py +++ b/src/arch/isa_parser.py @@ -1032,7 +1032,7 @@ def substBitOps(code): # Template objects are format strings that allow substitution from # the attribute spaces of other objects (e.g. InstObjParams instances). -labelRE = re.compile(r'[^%]%\(([^\)]+)\)[sd]') +labelRE = re.compile(r'(?