diff options
-rwxr-xr-x | contrib/hldiff | 3 | ||||
-rwxr-xr-x | contrib/plaintext | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/contrib/hldiff b/contrib/hldiff index 89aa9a21..5d7c4228 100755 --- a/contrib/hldiff +++ b/contrib/hldiff @@ -1,4 +1,5 @@ #!/usr/bin/env -S awk -f +# vim: set ft=awk : BEGIN { bright = "\x1B[1m" red = "\x1B[31m" @@ -13,7 +14,7 @@ BEGIN { if ($0 ~ /^diff /) { hit_diff = 1; print bright $0 reset - } else if ($0 ~ /^ .*\|.*(\+|-)/) { + } else if ($0 ~ /^.*\|.*(\+|-)/) { left = substr($0, 0, index($0, "|")-1) right = substr($0, index($0, "|")) gsub(/-+/, red "&" reset, right) diff --git a/contrib/plaintext b/contrib/plaintext index 1ed97e32..b7feb44d 100755 --- a/contrib/plaintext +++ b/contrib/plaintext @@ -1,4 +1,5 @@ #!/usr/bin/env -S awk -f +# vim: set ft=awk : BEGIN { dim = "\x1B[2m" cyan = "\x1B[36m" |