mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 05:31:28 +00:00
scripts: Merge 5827:5907 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@5908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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)
|
||||
@@ -545,11 +545,17 @@ BEGIN {
|
||||
reset_hunk_state_variables()
|
||||
match($0, "^@@ -([0-9]*),([0-9]*) \\+([0-9]*),([0-9]*) @@(.*)$", h)
|
||||
}
|
||||
else if (delete_next_blank_line && match($0, "^+$"))
|
||||
else if (delete_next_blank_line && $0 == "+")
|
||||
{
|
||||
discard = 1
|
||||
delete_next_blank_line = 0
|
||||
}
|
||||
else if (lines >= 2 && !match(line[lines-2], ":$") &&
|
||||
line[lines-1] == "+\x9return;" && $0 == "+}")
|
||||
{
|
||||
line[lines-1] = $0
|
||||
lines_less_added++
|
||||
}
|
||||
else
|
||||
{
|
||||
delete_next_blank_line = 0
|
||||
|
||||
Reference in New Issue
Block a user