tolerate ${...} in function names
authorPhil Blundell <philb@gnu.org>
Wed, 25 May 2005 10:14:30 +0000 (10:14 +0000)
committerPhil Blundell <philb@gnu.org>
Wed, 25 May 2005 10:14:30 +0000 (10:14 +0000)
lib/bb/parse/BBHandler.py

index bab8295..d386685 100644 (file)
@@ -28,7 +28,7 @@ from bb import debug, data, fetch, fatal
 from bb.parse.ConfHandler import include, localpath, obtain, init
 from bb.parse import ParseError
 
-__func_start_regexp__    = re.compile( r"(((?P<py>python)|(?P<fr>fakeroot))\s*)*(?P<func>[\w\-\+]+)?\s*\(\s*\)\s*{$" )
+__func_start_regexp__    = re.compile( r"(((?P<py>python)|(?P<fr>fakeroot))\s*)*(?P<func>[\w\-\+\{\}\$]+)?\s*\(\s*\)\s*{$" )
 __inherit_regexp__       = re.compile( r"inherit\s+(.+)" )
 __export_func_regexp__   = re.compile( r"EXPORT_FUNCTIONS\s+(.+)" )
 __addtask_regexp__       = re.compile("addtask\s+(?P<func>\w+)\s*((before\s*(?P<before>((.*(?=after))|(.*))))|(after\s*(?P<after>((.*(?=before))|(.*)))))*")