updating colorers

This commit is contained in:
Ville Rantanen
2016-06-03 13:47:08 +03:00
parent 7aa683484a
commit 4b57c0f416
3 changed files with 10 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ function helpexit() {
# * bullets # * bullets
# 1. ordered list # 1. ordered list
# ## Headers # ## Headers
# ``` code block
# code block # code block
# code inline # code inline
# [links](URL) # [links](URL)
@@ -23,13 +24,14 @@ function helpexit() {
# Color codes # Color codes
export HB_RULES='"\[[^]]\+\]([^)]\+)" "$U$B" \ export HB_RULES='"\[[^]]\+\]([^)]\+)" "$U$B" \
"^\s*\*.*" "$y" \ "^\s*\*" "$y" \
"^[[:space:]]*[0-9]\+\..*" "$y" \ "^[[:space:]]*[0-9]\+\..*" "$y" \
"^#.*" "$U$W" \ "^#.*" "$U$W" \
"\`\`\`.*" "$c" \
"^\s\s\s\s[^\*0-9].*" "$c" \ "^\s\s\s\s[^\*0-9].*" "$c" \
"\`[^[[:space:]]]*[^\`]\+\`" "$c" \ "\`[^[[:space:]]]*[^\`]\+\`" "$c" \
"\*\{1,2\}[^[[:space:]]]*[^\*]\+\*\{1,2\}" "$W" \ "\*\{1,2\}[^[[:space:]]]*[^\*]\+\*\{1,2\}" "$W" \
"_[^[[:space:]]]*[^_]\+_" "$W" \ "[[:space:]]_[^[[:space:]]]*[^_]\+_" "$W" \
"<[^>]\+>" "$K" \ "<[^>]\+>" "$K" \
"^\s*\[\s]\s.*" "$y" \ "^\s*\[\s]\s.*" "$y" \
"^\s*\[x]\s.*" "$Y" \ "^\s*\[x]\s.*" "$Y" \

View File

@@ -96,6 +96,9 @@ Special syntaxes:
bc=bc() bc=bc()
opts=setup_options() opts=setup_options()
if opts.filename=="-":
f=sys.stdin
else:
f=open(opts.filename,'r') f=open(opts.filename,'r')
for row in f: for row in f:
if not row: if not row:

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#sleep 1 #sleep 1
#$HOME/bin/disp 4 #sbl-disp 3
# Do something if at Univ network # Do something if at Univ network
#if ping ad.helsinki.fi -c 2; then #if ping ad.helsinki.fi -c 2; then