summaryrefslogtreecommitdiff
path: root/sheets/zsh.ssh
blob: dfee13f81c495cd5141ed7917589b5049d4515da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Style sheet for zsh
# Copyright (c) 1995-2000 Akim Demaille, Miguel Santana
#

#
# This file is part of a2ps.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

## 1.2 Akim Demaille
# Inherit sh.ssh

style "Z Shell" is
version is 1.3

ancestors are
  sh
end ancestors

documentation is
  "Zsh is a UNIX command interpreter (shell) usable as an interactive"
  "login shell and as a shell script command processor.  Of the standard"
  "shells, zsh most closely resembles ksh but includes many enhancements."
  "Zsh has comand line editing, builtin spelling correction, programmable"
  "command completion, shell functions (with autoloading), a history"
  "mechanism, and a host of other features."
  ""
  "This style sheet highlights some classical program names and builtins"
  "in the second level of pretty-printing."
end documentation

keywords in Keyword_strong are
  alias, autoload, bg, bindkey, builtin, bye, chdir, compctl,
  declare, dirs, disable, disown, echotc, emulate, enable, false, fc,
  fg, functions, getln, getopts, hash, history, integer, jobs, kill,
  let, limit, local, log, logout, popd, print, pushd, pushln, pwd, r,
  read, readonly, rehash, return, sched, setopt, suspend, test,
  times, true, ttyctl, typeset, ulimit, unalias, unfunction, unhash,
  unlimit, unsetopt, vared, wait, whence, where, which, noglob,
  nocorrect, command, foreach, "end", repeat, select, function, time,
  coproc
end keywords

optional keywords are
  && \wedge,
  || \vee,
  ^^ \oplus,
  != \neq,
  == \equiv,
  <= \leq,
  >= \geq
end keywords

optional operators are
  ! \not
end operators

sequences are
   "#" Comment,
   C-string,
   C-char
end sequences

end style