From a41cf8bc0a3f637043061bb0c7c2860d5c805478 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 26 Nov 2014 16:25:57 +0000 Subject: [PATCH] scripts/specialize-patch: Support blanks around numbers inside parentheses git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5888 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index ede8b0a19..190c64967 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -251,7 +251,7 @@ function evaluate(stmnt, pattern, arg, op, result) { sub(pattern, op[1] == 0 ? op[2] : op[1], stmnt) } - pattern="\\((-*[0-9]+)\\)" + pattern="\\([[:blank:]]*(-*[0-9]+)[[:blank:]]*\\)" while (match(stmnt, pattern, op) != 0) { sub(pattern, op[1], stmnt)