aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/lexers/sh.tes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lexers/sh.tes')
-rw-r--r--lib/lexers/sh.tes51
1 files changed, 51 insertions, 0 deletions
diff --git a/lib/lexers/sh.tes b/lib/lexers/sh.tes
new file mode 100644
index 0000000..79bdd8e
--- /dev/null
+++ b/lib/lexers/sh.tes
@@ -0,0 +1,51 @@
+! Unix Shell !
+
+@[lexer.test.sh]{ [_
+ :S[.sh,.bsh,configure,.ksh]
+ ! TODO: test hash-bang line !
+]_ }
+
+@[lexer.set.sh]{
+ ESSETLEXER,SCLEX_BASH
+ 0ESSETKEYWORDS
+ alias ar asa awk banner basename bash bc bdiff break
+ bunzip2 bzip2 cal calendar case cat cc cd chmod cksum
+ clear cmp col comm compress continue cp cpio crypt
+ csplit ctags cut date dc dd declare deroff dev df diff diff3
+ dircmp dirname do done du echo ed egrep elif else env
+ esac eval ex exec exit expand export expr false fc
+ fgrep fi file find fmt fold for function functions
+ getconf getopt getopts grep gres hash head help
+ history iconv id if in integer jobs join kill local lc
+ let line ln logname look ls m4 mail mailx make
+ man mkdir more mt mv newgrp nl nm nohup ntps od
+ pack paste patch pathchk pax pcat perl pg pr print
+ printf ps pwd read readonly red return rev rm rmdir
+ sed select set sh shift size sleep sort spell
+ split start stop strings strip stty sum suspend
+ sync tail tar tee test then time times touch tr
+ trap true tsort tty type typeset ulimit umask unalias
+ uname uncompress unexpand uniq unpack unset until
+ uudecode uuencode vi vim vpax wait wc whence which
+ while who wpaste wstart xargs zcat
+
+ chgrp chown chroot dir dircolors
+ factor groups hostid install link md5sum mkfifo
+ mknod nice pinky printenv ptx readlink seq
+ sha1sum shred stat su tac unlink users vdir whoami yes
+ :M[color.error],1M[color.set]
+ :M[color.comment],2M[color.set]
+ :M[color.number],3M[color.set]
+ :M[color.keyword],4M[color.set]
+ :M[color.string],5M[color.set]
+ :M[color.string],6M[color.set]
+ :M[color.operator],7M[color.set]
+ :M[color.target],8M[color.set] ! Identifiers, e.g. FOO=... !
+ :M[color.variable],9M[color.set]
+ :M[color.variable],10M[color.set]
+ :M[color.string2],11M[color.set] ! Backticks !
+}
+
+@:[lexer.auto]{
+ :M[lexer.test.sh]"S Q.fEB :M[lexer.set.sh] Oend '
+}