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
This commit is contained in:
Bart Van Assche
2014-04-04 04:38:33 +00:00
parent c77aa44ef0
commit 366970312c

View File

@@ -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)
{