From 5bd88ac3b1f462e87ccd62b606f1fdb51df6bb54 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Nov 2012 20:27:00 +1100 Subject: [PATCH] params: fixed parsing of value lists with -1 elements --- Tools/autotest/param_metadata/param_parse.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 Tools/autotest/param_metadata/param_parse.py diff --git a/Tools/autotest/param_metadata/param_parse.py b/Tools/autotest/param_metadata/param_parse.py old mode 100644 new mode 100755 index 817f7d4b2b..8dbee53985 --- a/Tools/autotest/param_metadata/param_parse.py +++ b/Tools/autotest/param_metadata/param_parse.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import os, glob, re from param import * @@ -13,7 +15,7 @@ prog_groups = re.compile(r"@Group:\s*(\w+).*((?:\n\s*//\s*@(\w+): (.*))+)\s*G", prog_group_param = re.compile(r"@Param:\s*(\w+).*((?:\n\s*//\s*@(\w+): (.*))+)\s*AP_", re.MULTILINE) -prog_values_field = re.compile(r"\s*(\w+:\w+)+,*") +prog_values_field = re.compile(r"\s*(-?\w+:\w+)+,*") def camelcase_escape(word): if re.match(r"([A-Z][a-z]+[A-Z][a-z]*)", word.strip()):