From 366970312c1e9bdfcecd19a69fc3a50c9b4bb177 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 4 Apr 2014 04:38:33 +0000 Subject: [PATCH] scripts/specialize-patch: Handle numbers surrounded by parentheses properly git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5405 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index f3ae24262..124311799 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -151,6 +151,12 @@ function evaluate(stmnt, pattern, arg, op, result) { { last_stmnt = stmnt + pattern = "\\([[:blank:]]*([0-9]+)[[:blank:]]*\\)" + while (match(stmnt, pattern, op) != 0) + { + sub(pattern, op[1], stmnt) + } + pattern = "![[:blank:]]*([0-9]+)" while (match(stmnt, pattern, op) != 0) {