Replace colorization sed scripts with ones that are more compatible with OSX

sed and NLS todo items.  They're also more consistent with other internal usage
of sed.
This commit is contained in:
Ed Blackman
2010-06-09 03:31:56 +08:00
committed by Gina Trapani
parent 9f03cf6847
commit 8b7e2e6aad

View File

@@ -572,10 +572,10 @@ _list() {
| eval ${TODOTXT_SORT_COMMAND} \ | eval ${TODOTXT_SORT_COMMAND} \
| sed ''' | sed '''
/^[0-9]\{'$PADDING'\} x /! { /^[0-9]\{'$PADDING'\} x /! {
s/\(.*(A).*\)/'$PRI_A'\1'$DEFAULT'/g; /(A)/ s|^.*|'$PRI_A'&'$DEFAULT'|
s/\(.*(B).*\)/'$PRI_B'\1'$DEFAULT'/g; /(B)/ s|^.*|'$PRI_B'&'$DEFAULT'|
s/\(.*(C).*\)/'$PRI_C'\1'$DEFAULT'/g; /(C)/ s|^.*|'$PRI_C'&'$DEFAULT'|
s/\(.*([D-Z]).*\)/'$PRI_X'\1'$DEFAULT'/g; /([D-Z])/ s|^.*|'$PRI_X'&'$DEFAULT'|
} }
''' \ ''' \
| sed ''' | sed '''