From 8bf780c087df9dca19c9d16739731eca9f6e6bc9 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Wed, 25 May 2005 10:14:30 +0000 Subject: tolerate ${...} in function names --- lib/bb/parse/BBHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/parse/BBHandler.py b/lib/bb/parse/BBHandler.py index bab8295cb..d38668505 100644 --- a/lib/bb/parse/BBHandler.py +++ b/lib/bb/parse/BBHandler.py @@ -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"(((?Ppython)|(?Pfakeroot))\s*)*(?P[\w\-\+]+)?\s*\(\s*\)\s*{$" ) +__func_start_regexp__ = re.compile( r"(((?Ppython)|(?Pfakeroot))\s*)*(?P[\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\w+)\s*((before\s*(?P((.*(?=after))|(.*))))|(after\s*(?P((.*(?=before))|(.*)))))*") -- cgit 1.2.3-korg