'*******************************************************************************
' EverEdit Syntax File
' Language:    Bash
' Maintainer:  www.everedit.net  
' History:
'   2013/04/04 First Version
'   2014/04/15 Updated rComment1&rString2
'	2015/09/18 Improved var match and changed <<EOF to COLOR_HIGHLIGHT7
'	2017/08/09 Fixed a bug of rComment1
'*******************************************************************************
Include( ".\const.mac" )

Set bash=CreateParser()

Set rComment1=bash.CreateRegion(COLOR_COMMENT1, "^\s*(?<!\$)#", "$", False )

Set rString1=bash.CreateStringRegion( COLOR_STRING1, "'", "\", False )
Set rString2=bash.CreateStringRegion( COLOR_STRING2, """", "\", False )

'Reserved Words
Set iWord1=bash.CreateWord(COLOR_WORD1, "alias bg bind break builtin caller case cd command compgen complete continue declare do done echo elif else enable esac eval exec exit export false fc fg fi for function getopts hash help history if in jobs kill let local logout mapfile newgrp popd print printf ps pushd pwd read readarray readonly return select set Shell shift shopt source suspend test then time times trap true type typeset ulimit umask unalias unset until wait whence while", True)

'Common utilities in places like
'/usr/java/java/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Set iWord2=bash.CreateWord(COLOR_WORD2, "411toppm a2p aafire aainfo aasavefont aatest ab abe ac access acctcom acl acl_edit aclocal acpi_listen acyclic adb addbib addftinfo addr2line adjacentscreens adjust admin adr900 adredit afm2tfm afs5log aleph alias align_equals amtu animate annotate antic applygeo apropos ar arch aria2c arj arj-register arjdisp as asa asciitopgm ash asn1Coding asn1Decoding asn1Parser aspell aspell-import astyle at atktopbm atq atrm attr audevent audisp audit2allow audsys audusr aulastlog ausyscall authconfig authconfig-tui auto_probe autoconf autoheader autom4te automake autopush autoreconf autoscan autossh autotrace autoupdate avc avstopam awk banner bar base64 basename bash bashbug-64 batch bc bcomps bcrypt bdf bdftopcf bdftruncate bdiff bearoffdump bfs bg bibtex biff bioradtopgm bitmap bmadr bmp2png bmptopnm bool bos boxes brushtopbm bs bsdcpio bsdiff bsdtar bspatch bunzip2 bzcat bzcmp bzdiff bzgrep bzip2 bzip2recover bzless bzmore c++ c++-3 c++-4 c++filt c2ph c89 c99 c_rehash cabextract cal cal_job caladr calcsheet calendar cameratopam cancel capitalize captoinfo captoinfo_colr cat catchsegv catdoc catppt cb cc ccache-swig ccat ccmake ccmakedep ccomps ccrypt cd cdargs cdb cdbclean cdbreboot cdc cdrwtool cdsadv cdsclerk cdscp cert2ldap certfind certtool certutil cflow cfourcc cgoban chacl chage chanadr chandba chatr chattr chcat chcon checkeq checkmodule checkmut checknr checkpolicy checkX chfn chgrp chkey chmod chown chroot chrt chsh chvt ci cifsiostat circo cistopbm cjpeg cksum clambc clamconf clamdscan clamdtop clamscan cleanlinks clear clear_colormap clear_functions clearw click clock cloog clusterdb cm cmake cmdtool cmp cmsutil cmuwmtopbm co col colcrt colrm column comb comm command compact compare compface compile compile_et composite compress compressdir conjure consolehelper conv convert cp cpack cpan cpio cpp cpp-3 cpp-4 cpset crash crc32 createdb crlutil cronevents crontab crypt cs2cs csh csplit csv2html ct ctags ctangle ctest ctie ctorrent ctrace ctris cu cue cuegetty curl cut cvs cvsps cweave cxpm cxpm-noX cxref cygcheck cygdrop cygpath cygrunsrv cygstart cygwin-console-helper d2u dash date db2_archive db2_checkpoint db2_deadlock db2_dump db2_load db2_printlog db2_recover db2_stat dbiprof dbiproxy dbl2png dbld dbld_cache dbld_inst dbld_mpg dbld_pat dbld_pin dbld_scan dbld_spec dbld_src dbld_wave dbus-binding-tool dbus-cleanup-sockets dbus-daemon dbus-launch dbus-monitor dbus-send dbus-uuidgen dbx dbxtool dc dc_client dc_server dc_snoop dc_test dce_login dcecp dcnodes dd ddate ddbugtopbm ddcmon ddrescue ddrescuelog deallocvt debuginfo-install defaultsedit delta derb deroff desktop dev devdump df dfsbind dfsd dfstrace dgawk dgenadr dgendba diff diff3 diffmk diffstat dig dijkstra dir dircmp dircolors dirname disable display djpeg dlltool dllwrap dmesg dmp dmpxlt dnsdomainname doexec domainname dos2unix dos2ux doschmod doscp dosdf dosll dosls dosmkdir dosrm dosrmdir dot dot2gxl dotty double dprofpp dropdb drs ds dts_ntp_provider dts_null_provider dtscp dtsd du dump dumper dumpfs dumpgdbm dumpkeys dumpmsg dumpsexp dvicopy dvigif dvilj dvilj2p dvilj4 dvilj4l dvilj6 dvipdfm dvipng dvips dvitomp dvitype ebb echo ecpg ed edit editrights eds egrep eject ELFDump elfedit elinks elm elmalias email enable enc2xs encode_keychange enroll env envsubst eqn eqn2graph error escp2topbm esdcat esdctl esdfilt esdloop esdmon esdplay esdrec esdsample etex eucset eventlogadm ex execstack expand expr eyuvtoppm factor faillog false fc fc-cache fc-cat fc-list fc-match fc-query fc-scan fcrackzip fcrackzipinfo fdetach fdformat fdp fdupes fftw-wisdom fftwf-wisdom fg fgconsole fgrep fiascotopnm fig2dev filan file filterdiff find find2perl findmsg findsmb findstr finger fipscheck fipshmac fitstopnm fixman fixproc flac flip flock floppy fmt fmt_mail fold fontedit fonttosfnt forder fortune free freetype-config freshclam from fstopgm ftio ftp fts functions funzip g++ g3topbm gaffitter gawk gc gcc gccmakedep gcj gcjh gcore gcov gd2copypal gd2togif gd2topng gdbus gdcmpgif gdk-pixbuf-csource gdk-pixbuf-query-loaders gdlib-config gdparttopng gdtopng gemtopnm genbrk gencat gencfu gencnval genctd gendiff genisoimage genrb genxlt geod geoiplookup geoiplookup6 geoipupdate geotifcp geqn GET get_alarm get_module get_selection getaccess getcellname getclip getconf getent getfacl getfattr getip getkeycodes getopt getoptcvt getopts getprivgrp gettext gftodvi gftopk gftype gfxtool ggi-cube3d ggi-demo ggi-flying_ggis ggi-monitest ggimisctest ggiteleserver ggiwmhtest gif2dbl gif2h5 gif2mask giftogd2 giftopnm gij gij-3 gindxbib gio-querymodules git git-receive-pack git-shell git-upload-archive git-upload-pack gkill glib-compile-schemas glib-genmarshal glookbib gmake gneqn gnroff gnubg gnugo gnuplot gnutls-cli gnutls-cli-debug gnutls-serv gobject-query gouldtoppm gpasswd gperf gpg gpg-error gpg-zip gpgsplit gpgv gpic gpm-root gprof graph graphinfo greed grefer grep grepjar grepjar-3 gres grget grn grodvi groff groffer grolbp grolj4 grops grotty groups grub-bin2h grub-editenv grub-fstest grub-mkelfimage grub-mkfont grub-mkimage grub-mkisofs grub-mkpasswd-pbkdf2 grub-mkrelpath grub-script-check gs gsettings gsftopk gsl-histogram gsl-randist gsoelim gtar gtbl gtester gtroff gtypist guile gunzip gvc gvcolor gvim gvpack gvpr gxl2dot gzexe gzip h2ph h2xs h52gif h5copy h5debug h5diff h5dump h5import h5jam h5ls h5mkgrp h5perf_serial h5repack h5repart h5stat h5unjam hal-device hal-find-by-capability hal-find-by-property hal-get-property hal-set-property halt hash hashdeep hazards hcp hdifftopam head help hersheydemo hexdump hipstopgm history hltest hmac256 host hostid hostname hostrfs hosts_to_named hpftodit hpimtool htdbm htdigest htpasswd hyphen i-ls i386 iAPX286 ibconf ibic icc2ps icclink icctrans icedax iconedit iconv icuinfo id ident identify idn ied ifnames igawk igcald igrestart igstart igstatus igstop ilbmtoppm imake imgcmp imginfo imgtoppm import indent indxbib info infocmp infocmp_colr infocmpw infokey infotocap infotopam innochecksum insadr insert_brackets insertmsg install install-catalog install-info insted instmodsh integer interdiff inv invgeod invproj ionice ioperm iostat ipcalc ipcmk ipcount ipcrm ipcs ipmi_ui ipmicmd ipmilan ipmish ipmitool iprint iptab iselect isodebug isodump isoinfo isosize isovfy ispell it900 it971 j971vc j971vctool jade jar jar-3 jasper java javac javadoc javaws jbgtopbm jbigtopnm jcf-dump jcf-dump-3 jcontrol jcsd jios jiv jlint jobcp jobio jobs jobtar jobtool join jpeg2ktopam jpegexiforient jpegicc jpegtopnm jpegtran jv-convert jv-convert-3 jv-scan jv-scan-3 jwhois kbd_mode kbdrate kdestroy kermit keylogin keylogout keysh kftp kill killall kinit klist kload kpseaccess kpsereadlink kpsestat kpsewhich ksh ksh93 landiag last lastb lastcomm lastlog latex lc lchfn lchsh ld ldapadd ldapcompare ldapdelete ldapmodify ldapmodrdn ldappasswd ldapsearch ldapwhoami ldd ldh leaftoppm leave lefty less lessecho lesskey leveladr leveldba lex lftp lftpget lgrep libnetcfg libpng-config libpng12-config lifcp lifinit lifls lifrename lifrm line link links lint linux32 linux64 lispmtopgm listaction listaction_d listfdb listgeo listjpeg listmp3 listswf listswf_d listusers lkbib ll ln lndir lneato loader loadgdbm loadkeys loadunimap locale localedef locate lock lockscreen logger login logname logresolve lokkit look lookbib lorder lp lpalt lpq lpr lprm lpstat lptest ls lsacl lsattr lsf lshal lspgpot lsr lsw lsx lua luac lv lvc lwp-download lwp-mirror lwp-request lwp-rget lynx lz lzmadec lzmainfo m4 m68k mac2unix mach macptopbm mag mail mailfrom mailq mailstats mailtool mailx make makebearoff makeconv makedb makedepend makefdb makeg makegeo makehyper makeindex makeinfo makestrs makeswf makeweights man man2html manpath mapscrn mathomatic mathomatic_secure mattrib mbadblocks mbchk mc mc68010 mc68020 mcat mcd mcheck mclasserase mcomp mcookie mcopy mcrypt md5deep md5sum mdatopbm mdel mdeltree mdir mdu mediainit memhog merge mergelib mesg metaflac metamail mev mf mf-nowin mformat mfpadr mfpdba mft mgrtopbm mib2c-update migratepages minfo mintty mk_cmds mkdir mkdirhier mkfifo mkfontdir mkfontscale mkgroup mkhtmlindex mkmanifest mkmf mkmsgs mknod mkpasswd mkpdf mkshortcut mkstr mktemp mkudffs mkuupath mkzftree mlabel mm mmd mmount mmove mmv mngtree model modutil mogrify montage more mount mountpoint mouse-test mpartition mpost mpstat mpto mrd mren mrftopbm msc msgattrib msgcat msgcmp msgcomm msgconv msgen msgfilter msgfmt msggrep msginit msgmerge msgtool msgunfmt msguniq mshowfat msql2mysql mt mtools mtoolstest mtvtoppm mtype multitail mutadr mutdba mutt mv mxtar my_print_defaults myisam_ftdump myisamchk myisamlog myisampack mysql mysqlaccess mysqladmin mysqlbinlog mysqlbug mysqlcheck mysqldump mysqldumpslow mysqlhotcopy mysqlimport mysqlshow mysqltest mysqltestmanager mysqltestmanager-pwgen mysqltestmanagerc mzip nad2bin nad2nad namei nano nawk nc nccopy ncdu ncdump ncgen ncgen3 neato neotoppm neqn net netstat newaliases newer newform newgrp newmail news nfrotz nfsstat ngettext nice ninvaders nisdomainname nl nljust nm nmap nmblookup nohup nop nosleep nproc nroff nrsd nsgmls nslookup nsupdate ntlm_auth ntps ntpstat numactl numademo numastat objcopy objdump od oddjob_request ode odt2txt odvicopy odvips odvitype ogmcat ogmdemux ogminfo ogmmerge ogmsplit oladr oldba oldfind oldrdist omega omfonts on on_ac_power onsgmls open openipmicmd openipmish openjade openssl openvt opint opint_download opint_version ops2c optipng osdd osgmlnorm ospam ospcat ospent osx otangle otp2ocp outocp overview owadr owdba pac pacat pack package-cleanup pacmd pactl page pagesize pal palmtopnm pamaddnoise pamarith pambackground pambayer pamchannel pamcomp pamcut pamdeinterlace pamdepth pamdice pamditherbw pamedge pamendian pamenlarge pamfile pamfixtrunc pamflip pamfunc pamgauss pamgradient pamlookup pammasksharpen pammixinterlace pammosaicknit pamoil pampaintspill pamperspective pampick pampop9 pamrecolor pamrgbatopng pamrubber pamscale pamseq pamsharpmap pamsharpness pamsistoaglyph pamslice pamsplit pamstack pamstereogram pamstretch pamsumm pamsummcol pamthreshold pamtilt pamtoavs pamtodjvurle pamtofits pamtogif pamtohdiff pamtohtmltbl pamtojpeg2k pamtompfont pamtooctaveimg pamtopam pamtopdbimg pamtopfm pamtopnm pamtosrf pamtosvg pamtotga pamtotiff pamtouil pamtoxvmini pamundice pamwipeout pamx pango-querymodules pango-view par parrot parrot-nqp parrot-prove parrot_config parrot_debugger passwd passwd_export passwd_import paste pasuspender patch patdebug patedit patgen pathalias pathchk pax pax11publish pbc_disassemble pbc_dump pbc_merge pbc_to pbmclean pbmlife pbmmake pbmmask pbmminkowski pbmpage pbmpscale pbmreduce pbmtext pbmtextps pbmto10x pbmto4425 pbmtoascii pbmtoatk pbmtobbnbg pbmtocis pbmtocmuwm pbmtodjvurle pbmtoepsi pbmtoepson pbmtoescp2 pbmtog3 pbmtogem pbmtogo pbmtoibm23xx pbmtojbg pbmtolj pbmtoln03 pbmtolps pbmtomacp pbmtomatrixorbital pbmtomda pbmtomgr pbmtomrf pbmtonokia pbmtopgm pbmtopi3 pbmtopk pbmtoplot pbmtoppa pbmtopsg3 pbmtoptx pbmtosunicon pbmtowbmp pbmtoxbm pbmtoybm pbmtozinc pbmupc pc1toppm pcat pcltrans pcregrep pcretest pcxtoppm pdbedit pdbimgtopam pdfck pdfdiff pdfetex pdffonts pdfimages pdfinfo pdfpr pdftex pdftoppm pdftops pdftotext pdfxtex pdp11 pear peardev pecl peflags perl perlbug perlcc perldoc perlhexdump perlivp perror pfb2pfa pfbtops pfmtopam pftp pg pg_config pg_dump pg_dumpall pgawk pgmabel pgmbentley pgmcrater pgmdeshadow pgmenhance pgmhist pgmkernel pgmmake pgmmedian pgmminkowski pgmmorphconv pgmnoise pgmramp pgmtexture pgmtofs pgmtolispm pgmtopbm pgmtopgm pgmtoppm pgpewrap pgpring pgrep php php-cgi php-config phpize pi1toppm pi3topbm pic pic2graph pic2plot piconv picttoppm pinadr pindba pinentry-curses pinentry-gtk-2 pinentry-qt4 pinentry-w32 ping ping6 pinky pjtoppm pk11install pk12util pk2bm pkcs11_eventmgr pkcs11_inspect pkcs11_setup pkg-config pkgdata pkill pkinit-get-san pkinit-show-cert-guid pklogin_finder pktogf pktopbm pktsetup pktype pl2pm plot plotfont ploticus pltotf pm-hibernate pm-is-supported pm-powersave pm-restart pm-shutdown pm-suspend pmap pmc pmctool png2bmp png2dbl pngtogd pngtogd2 pngtopam pnmalias pnmcat pnmcolormap pnmcomp pnmconvol pnmcrop pnmgamma pnmhisteq pnmhistmap pnmindex pnminvert pnmmercator pnmmontage pnmnlfilt pnmnorm pnmpad pnmpaste pnmpsnr pnmremap pnmrotate pnmscalefixed pnmshear pnmsmooth pnmstitch pnmtile pnmtoddif pnmtofiasco pnmtojbig pnmtojpeg pnmtopalm pnmtopclxl pnmtopng pnmtops pnmtorast pnmtorle pnmtosgi pnmtosir pnmtotiffcmyk pnmtoxwd pod2html pod2latex pod2man pod2text pod2usage podchecker podselect pooltype posix POST post-grohtml poweroff ppl ppl-config ppl_lcdd pplstat ppm3d ppmbrighten ppmchange ppmcie ppmcolormask ppmcolors ppmdcfont ppmddumpfont ppmdim ppmdist ppmdither ppmdmkfont ppmdraw ppmflash ppmforge ppmglobe ppmhist ppmlabel ppmmake ppmmix ppmntsc ppmpat ppmrelief ppmrough ppmshift ppmspread ppmtoacad ppmtoapplevol ppmtoarbtxt ppmtoascii ppmtobmp ppmtoeyuv ppmtogif ppmtoicr ppmtoilbm ppmtoleaf ppmtolj ppmtomitsu ppmtompeg ppmtoneo ppmtopcx ppmtopgm ppmtopi1 ppmtopict ppmtopj ppmtopjxl ppmtoppm ppmtopuzz ppmtorgb3 ppmtosixel ppmtoterm ppmtowinicon ppmtoxpm ppmtoyuv ppmtoyuvsplit ppmtv ppmwheel pr praliases pre-grohtml prealloc precat preconv preload preunzip prezip prezip-bin primes printemf printenv printf prmail procan prod prof profiles proj protoize protoize-3 prove prs prune ps ps2pk psed psfaddtable psfgettable psfstriptable psfxtable psidtopgm psktool psql pstoedit pstopnm pstree pstruct ptar ptardiff ptx pty pulseaudio puncture putclip pwd pwdx pwgen pwget pydoc python python2 qrttoppm quakestat quota ranlib rasfilter8to1 rasfilter_rgbtobgr rastrepl rasttopnm rats raw raw2adpcm rawtopgm rawtoppm rcp rcs rcsdiff rcsmerge rdate rdiff rdist rdistd rdjpgcom read readelf readlink readmail readom readshortcut realpath rearj rebase reboot recode-sr-latin red rediff refer regd regtool reindexdb remove_brackets remsh rename renice replace repo-graph repo-rss repoclosure repodiff repomanage repoquery reposync repotrack reset resetall resolve_stack_dump resolveip rev revck revpath rexec rf2ps rgb3toppm rgy_edit rh-upload rh-upload-core ring_alarm rksh rlatopam rletopnm rlog rlogin rlwrap rm rm_memalloc rmail rmchg rmcp_ping rmdel rmdir rmic rmic-3 rmiregistry rmiregistry-3 rmnl rnano rngtest robots roffbib rpcclient rpccp rpcd rpcgen rpcinfo rpm rpm2cpio rpmdb rpmquery rpmsign rpmverify rpng rpng2 RSA_SecurID_getpasswd rsh rsync rtprio rtsched ruby rubyw run run-parts run-with-aspell run2 runcon rup ruptime rusers rvi rview rvim rwho rxp rzip s15vc s2p sact sadf sadp sar sbigtopgm sbvtrans scanadr scandba sccmap sccs sccsdiff sccshelp scp screen screenblank screendump screenload screenpr script scriptreplay scrolldefaults sdiff sec_admin sec_clientd sechecker secon sed sediff seinfo selection_svc semfd semodule_deps semodule_expand semodule_link semodule_package semstat semtool sensors seq serialize sesearch set_alarm setarch setfacl setfattr setfont setkeycodes setleds setmetamode setserial setsid setterm setup sftp sg sgitopnm sgml2xml sgmlnorm sgmlspl sgmlwhich sgrep sh sha1deep sha1hmac sha1sum sha224sum sha256deep sha256hmac sha256sum sha384hmac sha384sum sha512hmac sha512sum shar sharc shelltool shift_lines shl shmadr shmoo shmtool showaudio showconsolefont showexternal showkey shownonascii showpicture showtool shred shuf shutdown sig_named signtool signver sigtool simclear simd simt_del simtool since sirtopnm size skill slabtop sldtoppm sleep slogin slp smbcacls smbclient smbcquotas smbget smbpasswd smbprint smbspool smbtar smbtree smidiff smidump smilint smiquery smixlate snice snmpbulkget snmpbulkwalk snmpconf snmpdelta snmpdf snmpget snmpgetnext snmpinform snmpnetstat snmpset snmpstatus snmptable snmptest snmptranslate snmptrap snmpusm snmpvacm snmpwalk socat soelim solterm sort sortbib spam sparc spctoppm specadr specdba specsheet speexdec spell spent splain spline split spnc spottopgm sprof sputoppm sqlite3 sqlplus sr_final srcadr srcdba srftopam srptool ssh ssh-add ssh-agent ssh-copy-id ssh-keygen ssh-keyscan sslswamp ssltap ssp start startadr startdba stat stcode stmkfont stop stop_regd strace strchg strclean strconf strdb stream strerr strings strip strvf stty su sudo sudoedit sudoku suidperl sum sunicontopnm suntools sunview sunview1 suspend svc svgtopam svn svnadmin svndumpfilter svnlook svnmucc svnrdump svnserve svnsync svnversion swftocxx swftoperl swftophp swftopython swftotcl swig swin switcher sxpm sxpm-noX symlinks symorder sync sysmonitor system-config-network system-config-network-cmd system-config-securitylevel-tui systool t_version_convert tab2space tabs tabsw tac tack tail tailf talk tangle tar task taskset tbl tcdialog tcio tclsh tcopy tcov tcptraceroute tcsh tdbx tdbxtool tdl_to_h tee tek2plot tektool telnet template_version_convert tera_dbg tera_dbg_stat teradyneid tervc test testlibusb testlibusb-win testparm tex texindex textedit tfmtodit tftopl tftp tgatoppm tgz thinkjettopbm tic tic0 tic_colr ticw tidy tie tiffdiff tifficc tifftopnm tigerdeep time timeout timex tip tld tload tmrdemo toe toew toold toolplaces top touch tput tput_colr tputw tr trace tracepath tracepath6 traceroute traceroute6 tracert traffic transfig traptoemail tred tree troff true truncate tset tsetw tsm tsmstart tsort ttf2afm ttmkfdir tty ttytype tvc twopi type type1afm typespeed tzselect tzset u2d u370 u3b u3b10 u3b15 u3b2 u3b5 ucd5820stat uconv ucs2any udebug udevinfo udevtest udffsck ul ulimit umask umodem umount unalias uname uncompact uncompface uncompress uncompressdir unexpand unflatten unget unicode_start unicode_stop unifdef uniq units unix2dos unix2mac unlink unpack unprotoize unprotoize-3 unrtf unshar untic unwhiteout unxz unzip unzipsfx update-mime-database updatedb uptime upx urlgrabber users userstat usleep utmpdump uucp uudecode uuencode uuidgen uulog uuls uuname uupath uupick uusnap uusnaps uustat uuto uux ux2dos uz v2j vacation val vanl vax vc vcompress vdir vecadr vecdba vedit verifytree vexpand vftovp vfu vgrind vi view vim vim-nox vimdiff vimtutor vipw virsh virt-pki-validate virt-xml-validate vis vm-support vmstat volname vpax vptovf vt w3m wafermap wait wall watch waveadr wavedba wavetool wbinfo wbmptopbm wc wdiff weave webalizer webazolver webpng wget what whatis whereis which whiptail whirlpooldeep who whoami whois wiggle windmc windres winicontoppm winxed wishwn wmf2eps wmf2fig wmf2gd wmf2svg wmf2x wn wodim word-list-compress wpaste wpng wput write wrjpgcom wrudf wspadr wspdba wstart wtpt X11 xargs xbmtopbm xd xdelta xfs xget xgettext xglyph ximtoppm xls2csv xmhtml xmkmf xml_grep xml_merge xml_pp xml_spellcheck xml_split xmlcatalog xmlif xmllint xmlwf xpdf xpg4 xpmtoppm xsend xsltproc xstr xsubpp xvminitoppm xwdtopnm xxd xz xzcat xzcmp xzdec xzdiff xzegrep xzfgrep xzgrep xzless xzmore yacc ybmtopbm yes ypcat ypchfn ypchsh ypdomainname ypmatch yppasswd ypwhich yum yumdownloader yuvsplittoppm yuvtoppm zadr zcat zcmp zdiff zegrep zeisstopnm zfgrep zforce zgrep zip zipcloak zipgrep zipinfo zipnote zipsplit zless zmore zmuxdiag znew zsh zsoelim zsync zsyncmake", True, "-")

Set iUserVar=bash.CreateItem(COLOR_VAR, "\$\w+\b|\$\{\w+\}", False)
Set iSpecialVar=bash.CreateItem(COLOR_VAR, "\$[0n\*#\$!\?]", False)

'System Vars
Set iSysVar=bash.CreateWord(COLOR_WORD3, "$BASH $BASH_ALIASES $BASH_ARGC $BASH_ARGV $BASH_CMDS $BASH_COMMAND $BASH_ENV $BASH_EXECUTION_STRING $BASH_LINENO $BASH_REMATCH $BASH_SOURCE $BASH_SUBSHELL $BASH_VERSINFO $BASH_VERSION $BASH_XTRACEFD $BASHOPTS $BASHPID $CDPATH $COLUMNS $COMP_CWORD $COMP_KEY $COMP_LINE $COMP_POINT $COMP_TYPE $COMP_WORDBREAKS $COMP_WORDS $COMPREPLY $DIRSTACK $EDITOR $EMACS $ENV $ERRNO $EUID $FCEDIT $FIGNORE $FUNCNAME $GLOBIGNORE $GROUPS $HISTCMD $HISTCONTROL $HISTFILE $HISTFILESIZE $HISTIGNORE $HISTSIZE $HISTTIMEFORMAT $HOME $HOSTFILE $HOSTNAME $HOSTTYPE $IFS $IGNOREEOF $INPUTRC $LANG $LC_ALL $LC_COLLATE $LC_CTYPE $LC_MESSAGES $LC_NUMERIC $LINENO $LINES $MACHTYPE $MAIL $MAILCHECK $MAILPATH $OLDPWD $OPTARG $OPTERR $OPTIND $OSTYPE $PATH $PIPESTATUS $POSIXLY_CORRECT $PPID $PROMPT_COMMAND $PROMPT_DIRTRIM $PS1 $PS2 $PS3 $PS4 $PWD $RANDOM $REPLY $SECONDS $SHELL $SHELLOPTS $SHLVL $TIMEFORMAT $TMOUT $TMPDIR $UID $VISUAL", True, "$_")
iSysVar.AutoCase=True

bash.AddRegion( rComment1 )
bash.AddRegion( rString1 )
bash.AddRegion( rString2 )

bash.AddWord( iWord1 )
bash.AddWord( iWord2 )

bash.AddItem( iUserVar )
bash.AddItem( iSpecialVar )
bash.AddWord( iSysVar )

'number
bash.AddItem( bash.CreateItem(COLOR_NUMBER, "\b\d+\b", False) )

'First line
rComment1.AddItem( bash.CreateItem(COLOR_MACRO, "^#!/bin/bash$", True) )

bash.IndentText "\{\s*$", False,  "\}\s*$", False
bash.FoldText "\{", False, "\}", False
bash.SetPairs( "[]''""""{}()" )
bash.CommentLine( "#" )

bash.AddRegion( bash.CreateRegion(COLOR_HIGHLIGHT7, "+<<EOF+", "^EOF\b", False ) )