bitbake/lib/bb/parse/parse_py/BBHandler.py:
authorHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 9 Aug 2005 22:11:45 +0000 (22:11 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 9 Aug 2005 22:11:45 +0000 (22:11 +0000)
-Patch by pHilipp Zabel to allow dots
in the function names. This fixes bug #139. It seems right
to have dots in the packagename

lib/bb/parse/parse_py/BBHandler.py

index 7419ca7..fac3e85 100644 (file)
@@ -28,7 +28,7 @@ from bb import debug, data, fetch, fatal
 from 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))|(.*)))))*")