]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/scripts/gen_state_diagram.py: make parser a bit more forgiving
authorSamuel Just <sam.just@inktank.com>
Mon, 2 Jul 2012 21:57:18 +0000 (14:57 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 5 Jul 2012 17:15:02 +0000 (10:15 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
doc/scripts/gen_state_diagram.py

index e843251c10c267ca261430a0da3afcdd798635aa..41af864d08caa9f1078ff7da0933d94729dace82 100755 (executable)
@@ -82,7 +82,7 @@ class StateMachineRenderer(object):
             self.get_context(line)
 
     def get_context(self, line):
-        match = re.search(r"\w+(::\w+)*\s*(\w+::)*::(?P<tag>\w+)::\w+\(const (?P<event>\w+)&",
+        match = re.search(r"(\w+::)*::(?P<tag>\w+)::\w+\(const (?P<event>\w+)",
                           line)
         if match is not None:
             self.context.append((match.group('tag'), self.context_depth, match.group('event')))