"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/plugins/bash_ref_man7_org.lua" (12 May 2020, 23407 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "bash_ref_man7_org.lua": 3.53_vs_3.54.

    1 
    2 Description="Add man7.org reference links to HTML, LaTeX, RTF and ODT output of Bash scripts"
    3 
    4 Categories = {"bash", "html", "rtf", "latex", "odt", "hyperlinks" }
    5 
    6 function syntaxUpdate(desc)
    7 
    8   if desc~="Bash" then
    9     return
   10   end
   11 
   12   function Set (list)
   13     local set = {}
   14     for _, l in ipairs(list) do set[l] = true end
   15       return set
   16   end
   17 
   18   man1_items = Set {
   19     "abicompat", "abidiff", "abidw", "abilint", "abipkgdiff", "ac", "addftinfo",
   20     "addr2line", "afmtodit", "apropos", "ar", "aria_chk", "aria_dump_log",
   21     "aria_ftdump", "aria_pack", "aria_read_log", "AS", "as", "attr", "audit2allow",
   22     "audit2why", "autofsd-probe", "autopoint", "b2sum", "babeltrace-log",
   23     "babeltrace", "base32", "base64", "basename", "bash", "blkparse",
   24     "blkrawverify", "bno_plot", "bootctl", "btt", "busctl", "cal",
   25     "callgrind_annotate", "callgrind_control", "cancel", "capsh", "cat", "certtool",
   26     "cg_annotate", "cgcc", "cg_diff", "cg_merge", "chacl", "chage", "chattr",
   27     "chcon", "chem", "chfn", "chgrp", "chkhelp", "chmod", "chown", "chroot", "chrt",
   28     "chsh", "chvt", "cifsiostat", "cksum", "CLEAR", "clear", "cmp", "col", "colcrt",
   29     "collectl2pcp", "colrm", "column", "comm", "comp_err", "coredumpctl", "cp",
   30     "cpp", "cronnext", "crontab", "csplit", "cups-config", "cups", "cupstestdsc",
   31     "cupstestppd", "cut", "danetool", "dash", "date", "dbpmda", "dbprobe", "dd",
   32     "deallocvt", "debuginfo-install", "df", "diff", "diff3", "dir", "dircolors",
   33     "dirname", "dlltool", "dmesg", "dnsdomainname", "domainname",
   34     "dpkg-architecture", "dpkg-buildflags", "dpkg-buildpackage",
   35     "dpkg-checkbuilddeps", "dpkg-deb", "dpkg-distaddfile", "dpkg-divert",
   36     "dpkg-genbuildinfo", "dpkg-genchanges", "dpkg-gencontrol", "dpkg-gensymbols",
   37     "dpkg-maintscript-helper", "dpkg-mergechangelogs", "dpkg-name",
   38     "dpkg-parsechangelog", "dpkg-query", "dpkg-scanpackages", "dpkg-scansources",
   39     "dpkg-shlibdeps", "dpkg-source", "dpkg-split", "dpkg-statoverride",
   40     "dpkg-trigger", "dpkg-vendor", "dpkg", "dselect", "dtrace", "du", "dumpkeys",
   41     "echo", "egrep", "eject", "elfedit", "env", "envsubst", "eqn", "eqn2graph",
   42     "expand", "expect", "expiry", "expr", "factor", "fallocate", "false",
   43     "fedabipkgdiff", "fgconsole", "fgrep", "file", "fincore",
   44     "find-repos-of-install", "find", "flock", "fmt", "fold", "free", "fuse2fs",
   45     "fuser", "fusermount3", "g++", "galera_new_cluster", "galera_recovery",
   46     "ganglia2pcp", "gawk", "gcc", "gcore", "gcov-dump", "gcov-tool", "gcov", "gdb",
   47     "gdbserver", "gdiffmk", "genpmda", "getent", "getfacl", "getfattr", "getopt",
   48     "gettext", "gettextize", "gfortran", "git-add", "git-am", "git-annotate",
   49     "git-apply", "git-archimport", "git-archive", "git-bisect", "git-blame",
   50     "git-branch", "git-bundle", "git-cat-file", "git-check-attr",
   51     "git-check-ignore", "git-check-mailmap", "git-check-ref-format",
   52     "git-checkout-index", "git-checkout", "git-cherry-pick", "git-cherry",
   53     "git-citool", "git-clean", "git-clone", "git-column", "git-commit-tree",
   54     "git-commit", "git-config", "git-count-objects", "git-credential-cache--daemon",
   55     "git-credential-cache", "git-credential-store", "git-credential",
   56     "git-cvsexportcommit", "git-cvsimport", "git-cvsserver", "git-daemon",
   57     "git-describe", "git-diff-files", "git-diff-index", "git-diff-tree", "git-diff",
   58     "git-difftool", "git-fast-export", "git-fast-import", "git-fetch-pack",
   59     "git-fetch", "git-filter-branch", "git-fmt-merge-msg", "git-for-each-ref",
   60     "git-format-patch", "git-fsck-objects", "git-fsck", "git-gc",
   61     "git-get-tar-commit-id", "git-grep", "git-gui", "git-hash-object", "git-help",
   62     "git-http-backend", "git-http-fetch", "git-http-push", "git-imap-send",
   63     "git-index-pack", "git-init-db", "git-init", "git-instaweb",
   64     "git-interpret-trailers", "git-log", "git-ls-files", "git-ls-remote",
   65     "git-ls-tree", "git-mailinfo", "git-mailsplit", "git-merge-base",
   66     "git-merge-file", "git-merge-index", "git-merge-one-file", "git-merge-tree",
   67     "git-merge", "git-mergetool--lib", "git-mergetool", "git-mktag", "git-mktree",
   68     "git-mv", "git-name-rev", "git-notes", "git-p4", "git-pack-objects",
   69     "git-pack-redundant", "git-pack-refs", "git-parse-remote", "git-patch-id",
   70     "git-prune-packed", "git-prune", "git-pull", "git-push", "git-quiltimport",
   71     "git-read-tree", "git-rebase", "git-receive-pack", "git-reflog", "git-relink",
   72     "git-remote-ext", "git-remote-fd", "git-remote-testgit", "git-remote",
   73     "git-repack", "git-replace", "git-request-pull", "git-rerere", "git-reset",
   74     "git-rev-list", "git-rev-parse", "git-revert", "git-rm", "git-send-email",
   75     "git-send-pack", "git-series", "git-sh-i18n--envsubst", "git-sh-i18n",
   76     "git-sh-setup", "git-shell", "git-shortlog", "git-show-branch",
   77     "git-show-index", "git-show-ref", "git-show", "git-stage", "git-stash",
   78     "git-status", "git-stripspace", "git-submodule", "git-svn", "git-symbolic-ref",
   79     "git-tag", "git-unpack-file", "git-unpack-objects", "git-update-index",
   80     "git-update-ref", "git-update-server-info", "git-upload-archive",
   81     "git-upload-pack", "git-var", "git-verify-commit", "git-verify-pack",
   82     "git-verify-tag", "git-web--browse", "git-whatchanged", "git-worktree",
   83     "git-write-tree", "git", "gitk", "gitremote-helpers", "gitweb", "glilypond",
   84     "gnutls-cli-debug", "gnutls-cli", "gnutls-serv", "gpasswd", "gperl", "gpinyin",
   85     "gprof", "grap2graph", "grep", "grn", "grodvi", "groff", "groffer", "grog",
   86     "grohtml", "grolbp", "grolj4", "gropdf", "grops", "grotty", "groups", "guards",
   87     "head", "hexdump", "hg", "hostid", "hostname", "hostnamectl", "hpftodit",
   88     "htop", "iconv", "id", "indent", "indxbib", "init", "innochecksum",
   89     "inotifywait", "inotifywatch", "install", "intro", "ionice", "iostat",
   90     "iostat2pcp", "iowatcher", "ipcmk", "ipcrm", "ipcs", "ippfind", "ipptool",
   91     "join", "journalctl", "kbd_mode", "kernelshark", "keyctl", "kill", "killall",
   92     "last", "lastb", "lastcomm", "ld", "ldapadd", "ldapcompare", "ldapdelete",
   93     "ldapexop", "ldapmodify", "ldapmodrdn", "ldappasswd", "ldapsearch", "ldapurl",
   94     "ldapwhoami", "ldd", "less", "lessecho", "lesskey", "lexgrog", "line", "link",
   95     "lkbib", "ln", "loadkeys", "locale", "localectl", "localedef", "locate",
   96     "logger", "login", "loginctl", "logname", "look", "lookbib", "lp", "lpoptions",
   97     "lpq", "lpr", "lprm", "lpstat", "ls", "lsattr", "lscpu", "lsinitrd", "lsipc",
   98     "lslogins", "lsmem", "ltrace", "lttng-add-context", "lttng-calibrate",
   99     "lttng-crash", "lttng-create", "lttng-destroy", "lttng-disable-channel",
  100     "lttng-disable-event", "lttng-enable-channel", "lttng-enable-event",
  101     "lttng-gen-tp", "lttng-help", "lttng-list", "lttng-load", "lttng-metadata",
  102     "lttng-regenerate", "lttng-save", "lttng-set-session", "lttng-snapshot",
  103     "lttng-start", "lttng-status", "lttng-stop", "lttng-track", "lttng-untrack",
  104     "lttng-version", "lttng-view", "lttng", "lttngtop", "lttngtoptrace",
  105     "lxc-attach", "lxc-autostart", "lxc-cgroup", "lxc-checkconfig",
  106     "lxc-checkpoint", "lxc-config", "lxc-console", "lxc-copy", "lxc-create",
  107     "lxc-destroy", "lxc-device", "lxc-execute", "lxc-freeze", "lxc-info", "lxc-ls",
  108     "lxc-monitor", "lxc-snapshot", "lxc-start", "lxc-stop", "lxc-top",
  109     "lxc-unfreeze", "lxc-unshare", "lxc-user-nic", "lxc-usernsexec", "lxc-wait",
  110     "machinectl", "make", "make_win_bin_dist", "man", "manconv", "manpath",
  111     "mariadb-service-convert", "mcookie", "md5sum", "memusage", "memusagestat",
  112     "mesg", "mkaf", "mkdir", "mkfifo", "mknod", "mktemp", "mmroff", "more",
  113     "mountpoint", "mpstat", "mrtg2pcp", "msgattrib", "msgcat", "msgcmp", "msgcomm",
  114     "msgconv", "msgen", "msgexec", "msgfilter", "msgfmt", "msggrep", "msginit",
  115     "msgmerge", "msgunfmt", "msguniq", "ms_print", "msql2mysql", "mtrace", "mv",
  116     "myisamchk", "myisam_ftdump", "myisamlog", "myisampack", "my_print_defaults",
  117     "my_safe_process", "mysql-stress-test.pl", "mysql-test-run.pl", "mysql",
  118     "mysql.server", "mysqlaccess", "mysqladmin", "mysqlbinlog", "mysqlbug",
  119     "mysqlcheck", "mysql_client_test", "mysql_client_test_embedded", "mysql_config",
  120     "mysql_convert_table_format", "mysqld_multi", "mysqld_safe",
  121     "mysqld_safe_helper", "mysqldump", "mysqldumpslow", "mysql_find_rows",
  122     "mysql_fix_extensions", "mysqlhotcopy", "mysqlimport", "mysql_install_db",
  123     "mysql_plugin", "mysql_secure_installation", "mysql_setpermission", "mysqlshow",
  124     "mysqlslap", "mysqltest", "mysqltest_embedded", "mysql_tzinfo_to_sql",
  125     "mysql_upgrade", "mysql_waitpid", "mysql_zap", "namei", "ncat",
  126     "ncurses5-config", "ncurses6-config", "ndiff", "needs-restarting", "neqn",
  127     "networkctl", "newgidmap", "newgrp", "newhelp", "newrole", "newuidmap",
  128     "nfs4_editfacl", "nfs4_getfacl", "nfs4_setfacl", "nfsiostat-sysstat",
  129     "ngettext", "nice", "nisdomainname", "nl", "nlmconv", "nm", "nmap-update",
  130     "nmap", "nodename", "nohup", "nping", "nproc", "nroff", "nsenter", "numfmt",
  131     "objcopy", "objdump", "ocount", "ocsptool", "od", "op-check-perfevents",
  132     "opannotate", "oparchive", "opcontrol", "openvt", "operf", "opgprof", "ophelp",
  133     "opimport", "opreport", "oprofile", "oprof_start", "p11tool", "package-cleanup",
  134     "passwd", "paste", "patch", "pathchk", "pcap-config", "pcp-atop", "pcp-atopsar",
  135     "pcp-collectl", "pcp-dmcache", "pcp-free", "pcp-iostat", "pcp-ipcs",
  136     "pcp-lvmcache", "pcp-mpstat", "pcp-numastat", "pcp-pidstat", "pcp-python",
  137     "pcp-shping", "pcp-summary", "pcp-tapestat", "pcp-uptime", "pcp-verify",
  138     "pcp-vmstat", "pcp", "pcp2graphite", "pcp2influxdb", "PCPIntro", "pcpintro",
  139     "pcre-config", "pcregrep", "pcretest", "pdfmom", "pdfroff", "peekfd",
  140     "perf-annotate", "perf-archive", "perf-bench", "perf-buildid-cache",
  141     "perf-buildid-list", "perf-c2c", "perf-config", "perf-data", "perf-diff",
  142     "perf-evlist", "perf-ftrace", "perf-help", "perf-inject", "perf-kallsyms",
  143     "perf-kmem", "perf-kvm", "perf-list", "perf-lock", "perf-mem", "perf-probe",
  144     "perf-record", "perf-report", "perf-sched", "perf-script-perl",
  145     "perf-script-python", "perf-script", "perf-stat", "perf-test", "perf-timechart",
  146     "perf-top", "perf-trace", "perf", "perfalloc", "perror", "pfbtops", "pg",
  147     "pgrep", "pic", "pic2graph", "pidof", "pidstat", "pinky", "pkill", "pldd",
  148     "pmafm", "pmap", "pmatop", "pmcd", "pmcd_wait", "pmchart", "pmclient",
  149     "pmclient_fg", "pmcollectl", "pmconfig", "pmconfirm", "pmcpp", "pmdaactivemq",
  150     "pmdaaix", "pmdaapache", "pmdabash", "pmdabind2", "pmdabonding", "pmdacifs",
  151     "pmdacisco", "pmdadarwin", "pmdadbping", "pmdadm", "pmdadocker", "pmdads389",
  152     "pmdads389log", "pmdaelasticsearch", "pmdafreebsd", "pmdagfs2", "pmdagluster",
  153     "pmdagpfs", "pmdaib", "pmdajbd2", "pmdajson", "pmdakernel", "pmdakvm",
  154     "pmdalibvirt", "pmdalinux", "pmdalio", "pmdalmsensors", "pmdalogger",
  155     "pmdalustre", "pmdalustrecomm", "pmdamailq", "pmdamemcache", "pmdamic",
  156     "pmdammv", "pmdamounts", "pmdamysql", "pmdanetbsd", "pmdanetfilter",
  157     "pmdanfsclient", "pmdanginx", "pmdanutcracker", "pmdanvidia", "pmdaoracle",
  158     "pmdapapi", "pmdaperfevent", "pmdapipe", "pmdapostfix", "pmdapostgresql",
  159     "pmdaproc", "pmdaredis", "pmdaroomtemp", "pmdaroot", "pmdarpm", "pmdarsyslog",
  160     "pmdasample", "pmdasendmail", "pmdashping", "pmdasimple", "pmdaslurm",
  161     "pmdasolaris", "pmdasummary", "pmdasystemd", "pmdate", "pmdatrace",
  162     "pmdatrivial", "pmdatxmon", "pmdaunbound", "pmdaweblog", "pmdawindows",
  163     "pmdaxfs", "pmdazimbra", "pmdazswap", "pmdbg", "pmdiff", "pmdumplog",
  164     "pmdumptext", "pmerr", "pmevent", "pmfind", "pmgenmap", "pmgetopt",
  165     "pmhostname", "pmie", "pmie2col", "pmie_check", "pmieconf", "pmie_daily",
  166     "pmiestatus", "pminfo", "pmiostat", "pmlc", "pmlock", "pmlogcheck", "pmlogconf",
  167     "pmlogextract", "pmlogger", "pmlogger_check", "pmlogger_daily",
  168     "pmlogger_merge", "pmloglabel", "pmlogmv", "pmlogreduce", "pmlogrewrite",
  169     "pmlogsummary", "pmmessage", "pmmgr", "pmnewlog", "pmnsadd", "pmnscomp",
  170     "pmnsdel", "pmnsmerge", "pmpause", "pmpost", "pmprobe", "pmproxy", "pmpython",
  171     "pmquery", "pmrep", "pmsignal", "pmsleep", "pmsnap", "pmsocks", "pmstat",
  172     "pmstore", "pmtime", "pmtrace", "pmval", "pmview", "pmwebd", "ppdc", "ppdhtml",
  173     "ppdi", "ppdmerge", "ppdpo", "pr", "preconv", "printenv", "printf", "prlimit",
  174     "prtstat", "ps", "psfaddtable", "psfgettable", "psfstriptable", "psfxtable",
  175     "psktool", "pslog", "pstree", "ptx", "pv", "pwd", "pwdx", "quilt", "quota",
  176     "quotasync", "ranlib", "readelf", "readlink", "realpath", "recode-sr-latin",
  177     "refer", "rename", "renice", "replace", "repo-graph", "repo-rss", "repoclosure",
  178     "repodiff", "repomanage", "repoquery", "reposync", "repotrack", "RESET",
  179     "reset", "resolveip", "resolve_stack_dump", "rev", "rm", "rmdir", "roff2dvi",
  180     "roff2html", "roff2pdf", "roff2ps", "roff2text", "roff2x", "rsync", "runcon",
  181     "runuser", "sadf", "sar", "sar2pcp", "scmp_sys_resolver", "scp", "screen",
  182     "script", "scriptreplay", "sdiff", "secon", "sed", "seq", "setfacl", "setfattr",
  183     "setleds", "setmetamode", "setpriv", "setsid", "setterm", "sftp", "sg",
  184     "sha1sum", "sha224sum", "sha256sum", "sha384sum", "sha512sum", "sheet2pcp",
  185     "show-changed-rco", "show-installed", "showkey", "shred", "shuf", "size",
  186     "skill", "slabtop", "sleep", "snice", "soelim", "sort", "sparse", "split",
  187     "sprof", "srptool", "ssh-add", "ssh-agent", "ssh-keygen", "ssh-keyscan", "ssh",
  188     "SSHFS", "sshfs", "stap-merge", "stap-prep", "stap-report", "stap", "stapref",
  189     "stapvirt", "stat", "stdbuf", "stg-branch", "stg-clean", "stg-clone",
  190     "stg-commit", "stg-delete", "stg-diff", "stg-edit", "stg-export", "stg-files",
  191     "stg-float", "stg-fold", "stg-goto", "stg-hide", "stg-id", "stg-import",
  192     "stg-init", "stg-log", "stg-mail", "stg-new", "stg-next", "stg-patches",
  193     "stg-pick", "stg-pop", "stg-prev", "stg-publish", "stg-pull", "stg-push",
  194     "stg-rebase", "stg-redo", "stg-refresh", "stg-rename", "stg-repair",
  195     "stg-reset", "stg-series", "stg-show", "stg-sink", "stg-squash", "stg-sync",
  196     "stg-top", "stg-uncommit", "stg-undo", "stg-unhide", "stg", "strace", "strings",
  197     "strip", "stty", "su", "sum", "sync", "systemctl", "systemd-analyze",
  198     "systemd-ask-password", "systemd-bootchart", "systemd-cat", "systemd-cgls",
  199     "systemd-cgtop", "systemd-delta", "systemd-detect-virt", "systemd-escape",
  200     "systemd-firstboot", "systemd-firstboot.service", "systemd-inhibit",
  201     "systemd-machine-id-setup", "systemd-mount", "systemd-notify", "systemd-nspawn",
  202     "systemd-path", "systemd-resolve", "systemd-run", "systemd-socket-activate",
  203     "systemd-tty-ask-password-agent", "systemd-umount", "systemd", "systemkey-tool",
  204     "TABS", "tabs", "tac", "tail", "tapestat", "tar", "taskset", "tbl", "tcpdump",
  205     "tee", "telnet-probe", "test", "tfmtodit", "time", "timedatectl", "timeout",
  206     "tload", "tmux", "tokuftdump", "tokuft_logdump", "tokuft_logprint", "top",
  207     "touch", "tpmtool", "TPUT", "tput", "tr", "trace-cmd-check-events",
  208     "trace-cmd-extract", "trace-cmd-hist", "trace-cmd-list", "trace-cmd-listen",
  209     "trace-cmd-mem", "trace-cmd-options", "trace-cmd-profile", "trace-cmd-record",
  210     "trace-cmd-report", "trace-cmd-reset", "trace-cmd-restore", "trace-cmd-show",
  211     "trace-cmd-snapshot", "trace-cmd-split", "trace-cmd-stack", "trace-cmd-start",
  212     "trace-cmd-stat", "trace-cmd-stop", "trace-cmd-stream", "trace-cmd", "troff",
  213     "true", "truncate", "TSET", "tset", "tsort", "tty", "ul", "uname", "unexpand",
  214     "unicode_start", "unicode_stop", "uniq", "unlink", "unshare",
  215     "update-alternatives", "updatedb", "uptime", "usb-devices", "users", "utmpdump",
  216     "uuidgen", "valgrind-listener", "valgrind", "vdir", "verify_blkparse",
  217     "verifytree", "vgdb", "vlock", "w", "wall", "watch", "wc", "Wget", "wget",
  218     "whatis", "whereis", "who", "whoami", "windmc", "windres", "write",
  219     "wsrep_sst_common", "wsrep_sst_mysqldump", "wsrep_sst_rsync",
  220     "wsrep_sst_xtrabackup-v2", "wsrep_sst_xtrabackup", "xargs", "xgettext", "yes",
  221     "ypdomainname", "yum-aliases", "yum-builddep", "yum-changelog",
  222     "yum-config-manager", "yum-debug-dump", "yum-debug-restore", "yum-filter-data",
  223     "yum-fs-snapshot", "yum-groups-manager", "yum-list-data", "yum-ovl",
  224     "yum-utils", "yum-verify", "yum-versionlock", "yumdownloader", "zenmap",
  225     "zsoelim"
  226 }
  227 
  228 man1p_items = Set {
  229     "admin", "alias", "ar", "asa", "at", "awk", "basename", "batch", "bc",
  230     "bg", "break", "c99", "cal", "cat", "cd", "cflow", "chgrp", "chmod",
  231     "chown", "cksum", "cmp", "colon", "comm", "command", "compress",
  232     "continue", "cp", "crontab", "csplit", "ctags", "cut", "cxref", "date",
  233     "dd", "delta", "df", "diff", "dirname", "dot", "du", "echo", "ed",
  234     "env", "eval", "ex", "exec", "exit", "expand", "export", "expr",
  235     "false", "fc", "fg", "file", "find", "fold", "fort77", "fuser",
  236     "gencat", "get", "getconf", "getopts", "grep", "hash", "head", "iconv",
  237     "id", "ipcrm", "ipcs", "jobs", "join", "kill", "lex", "link", "ln",
  238     "locale", "localedef", "logger", "logname", "lp", "ls", "m4", "mailx",
  239     "make", "man", "mesg", "mkdir", "mkfifo", "more", "mv", "newgrp",
  240     "nice", "nl", "nm", "nohup", "od", "paste", "patch", "pathchk", "pax",
  241     "pr", "printf", "prs", "ps", "pwd", "qalter", "qdel", "qhold", "qmove",
  242     "qmsg", "qrerun", "qrls", "qselect", "qsig", "qstat", "qsub", "read",
  243     "readonly", "renice", "return", "rm", "rmdel", "rmdir", "sact", "sccs",
  244     "sed", "set", "sh", "shift", "sleep", "sort", "split", "strings",
  245     "strip", "stty", "tabs", "tail", "talk", "tee", "test", "time",
  246     "times", "touch", "tput", "tr", "trap", "true", "tsort", "tty", "type",
  247     "ulimit", "umask", "unalias", "uname", "uncompress", "unexpand", "unget",
  248     "uniq", "unlink", "unset", "uucp", "uudecode", "uuencode", "uustat",
  249     "uux", "val", "vi", "wait", "wc", "what", "who", "write", "xargs",
  250     "yacc", "zcat"
  251 }
  252 man2_items = Set {
  253 
  254     "accept","access","acct","adjtimex","afs_syscall","alarm","alloc_hugepages",
  255     "arch_prctl","bdflush","bind","break","brk","cacheflush","capget","capset",
  256     "chdir","chmod","chown","chroot","clone","close","connect","creat",
  257     "create_module","DC_CTX_new","DC_PLUG_new","DC_PLUG_read","DC_SERVER_new",
  258     "delete_module","dup2","dup","epoll_create","epoll_ctl","epoll_wait","execve",
  259     "_exit","fchdir","fchmod","fchown","fcntl","fdatasync","fgetxattr","flistxattr",
  260     "flock","fork","free_hugepages","fremovexattr","fsetxattr","fstat","fstatfs",
  261     "fstatvfs","fsync","ftruncate","futex","getcontext","getdents","getdomainname",
  262     "getdtablesize","getegid","geteuid","getgid","getgroups","gethostid",
  263     "gethostname","getitimer","get_kernel_syms","getpagesize","getpeername",
  264     "getpgid","getpgrp","getpid","getpmsg","getppid","getpriority","getresgid",
  265     "getresuid","getrlimit","getrusage","getsid","getsockname","getsockopt",
  266     "get_thread_area","gettid","gettimeofday","getuid","getxattr","gtty","idle",
  267     "inb","inb_p","init_module","inl","inl_p","insb","insl","insw","intro","inw",
  268     "inw_p","io_cancel","ioctl","ioctl_list","io_destroy","io_getevents","ioperm",
  269     "iopl","io_setup","io_submit","ipc","kill","killpg","lchown","lgetxattr","link",
  270     "listen","listxattr","llistxattr","_llseek","llseek","lock","lookup_dcookie",
  271     "lremovexattr","lseek","lsetxattr","lstat","madvise","mbind","mincore","mkdir",
  272     "mknod","mlock.2","mlock","mlockall.2","mlockall","mmap2","mmap","modify_ldt",
  273     "mount","mprotect","mpx","mremap","msgctl","msgget","msgop","msgrcv","msgsnd",
  274     "msync","munlock","munlockall","munmap","NAL_ADDRESS_new","NAL_BUFFER_new",
  275     "NAL_CONNECTION_new","NAL_decode_uint32","NAL_LISTENER_new","NAL_SELECTOR_new",
  276     "nanosleep","_newselect","nfsservctl","nice","obsolete","oldfstat","oldlstat",
  277     "oldolduname","oldstat","olduname","open","outb","outb_p","outl","outl_p",
  278     "outsb","outsl","outsw","outw","outw_p","pause","pciconfig_iobase",
  279     "pciconfig_read","pciconfig_write","personality","pipe","pivot_root","poll",
  280     "posix_fadvise","prctl","pread","prof","pselect","ptrace","putpmsg","pwrite",
  281     "query_module","quotactl","read","readahead","readdir","readlink","readv",
  282     "reboot","recv","recvfrom","recvmsg","remap_file_pages","removexattr","rename",
  283     "rmdir","sbrk","sched_getaffinity","sched_getparam","sched_get_priority_max",
  284     "sched_get_priority_min","sched_getscheduler","sched_rr_get_interval",
  285     "sched_setaffinity","sched_setparam","sched_setscheduler","sched_yield",
  286     "security","select","select_tut","semctl","semget","semop","semtimedop","send",
  287     "sendfile","sendmsg","sendto","setcontext","setdomainname","setegid","seteuid",
  288     "setfsgid","setfsuid","setgid","setgroups","sethostid","sethostname","setitimer"
  289     ,"set_mempolicy","setpgid","setpgrp","setpriority","setregid","setresgid",
  290     "setresuid","setreuid","setrlimit","setsid","setsockopt","set_thread_area",
  291     "settimeofday","setuid","setup","setxattr","sgetmask","shmat","shmctl","shmdt",
  292     "shmget","shmop","shutdown","sigaction","sigaltstack","sigblock","siggetmask",
  293     "sigmask","signal","sigpause","sigpending","sigprocmask","sigqueue","sigreturn",
  294     "sigsetmask","sigsuspend","sigtimedwait","sigvec","sigwaitinfo","socket",
  295     "socketcall","socketpair","ssetmask","sstk","stat","statfs","statvfs","stime",
  296     "stty","swapoff","swapon","symlink","sync","syscall","syscalls","_sysctl",
  297     "sysctl","sysfs","sysinfo","syslog","time","times","tkill","truncate","tux",
  298     "umask","umount2","umount","uname","undocumented","unimplemented","unlink",
  299     "uselib","ustat","utime","utimes","vfork","vhangup","vm86","wait","wait3",
  300     "wait4","waitpid","write","writev"
  301 }
  302 
  303 
  304   function getURL(token, manId, pId)
  305     url='http://man7.org/linux/man-pages/man'..manId .. '/' .. token .. '.'..manId..pId..'.html'
  306 
  307     if (HL_OUTPUT== HL_FORMAT_HTML or HL_OUTPUT == HL_FORMAT_XHTML) then
  308       return '<a class="hl" target="new" href="' .. url .. '">'.. token .. '</a>'
  309     elseif (HL_OUTPUT == HL_FORMAT_LATEX) then
  310       return '\\href{'..url..'}{'..token..'}'
  311     elseif (HL_OUTPUT == HL_FORMAT_RTF) then
  312       return '{{\\field{\\*\\fldinst HYPERLINK "'..url..'" }{\\fldrslt\\ul\\ulc0 '..token..'}}}'
  313     elseif (HL_OUTPUT == HL_FORMAT_ODT) then
  314       return '<text:a xlink:type="simple" xlink:href="'..url..'">'..token..'</text:a>'
  315     end
  316   end
  317 
  318   function Decorate(token, state)
  319 
  320     if state~=HL_KEYWORD and state ~=HL_STANDARD then return end
  321 
  322     if man1_items[token] then
  323       return getURL(token, 1, "")
  324     elseif man1p_items[token] then
  325       return getURL(token, 1, "p")
  326     elseif man2_items[token] then
  327       return getURL(token, 2, "")
  328     end
  329 
  330   end
  331 end
  332 
  333 function themeUpdate(desc)
  334   if (HL_OUTPUT == HL_FORMAT_HTML or HL_OUTPUT == HL_FORMAT_XHTML) then
  335     Injections[#Injections+1]="a.hl, a.hl:visited {color:inherit;font-weight:inherit;}"
  336   elseif (HL_OUTPUT==HL_FORMAT_LATEX) then
  337     Injections[#Injections+1]="\\usepackage[colorlinks=false, pdfborderstyle={/S/U/W 1}]{hyperref}"
  338   end
  339 end
  340 
  341 --The Plugins array assigns code chunks to themes or language definitions.
  342 --The chunks are interpreted after the theme or lang file were parsed,
  343 --so you can refer to elements of these files
  344 
  345 Plugins={
  346 
  347   { Type="lang", Chunk=syntaxUpdate },
  348   { Type="theme", Chunk=themeUpdate },
  349 
  350 }