From 33fa0b39db0dc5372cd98bc11c079c166342a9fe Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Thu, 14 Apr 2011 18:40:05 +0000 Subject: [PATCH] Update the variable_types syntax. This change has no changes to the output. --- utils/wiki_grabber.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/utils/wiki_grabber.py b/utils/wiki_grabber.py index a476bb87bf8..c49ed0b3161 100755 --- a/utils/wiki_grabber.py +++ b/utils/wiki_grabber.py @@ -219,10 +219,13 @@ if __name__ == "__main__": def create_variable_types_table(data): """Creates a table for the variable types.""" - #matches a line like - # int & Signed number (whole - # numbers). $ - regex = re.compile("([A-Za-z]\w*) +& +(.*) +\$") + regex = re_record_start + regex += re_variable # 0 variable type + regex += re_field_separator + regex += re_string # 1 description + regex += re_record_end + + regex = re.compile(regex, re.DOTALL | re.MULTILINE) res = regex.findall(data) if is_empty(res, data):