annotate runtime/syntax/mush.vim @ 7428:a4838cba1f48 v7.4.1018

commit https://github.com/vim/vim/commit/af2dff8fbc0e0c1dd7cb5ae058c3b896c28f7d24 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 1 14:57:51 2016 +0100 patch 7.4.1018 Problem: Failure running tests. Solution: Add missing change to list of old style tests.
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Jan 2016 15:00:04 +0100
parents 8cd729851562
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " MUSHcode syntax file
856
8cd729851562 updated for version 7.0g
vimboss
parents: 557
diff changeset
2 " Maintainer: Rick Bird <nveid@nveid.com>
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
3 " Based on vim Syntax file by: Bek Oberin <gossamer@tertius.net.au>
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
4 " Last Updated: Fri Nov 04 20:28:15 2005
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
5 "
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " regular mush functions
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
16
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
17 syntax keyword mushFunction contained @@ abs accent accname acos add after align
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
18 syntax keyword mushFunction contained allof alphamax alphamin and andflags
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
19 syntax keyword mushFunction contained andlflags andlpowers andpowers ansi aposs art
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
20 syntax keyword mushFunction contained asin atan atan2 atrlock attrcnt band baseconv
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
21 syntax keyword mushFunction contained beep before blank2tilde bnand bnot bor bound
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
22 syntax keyword mushFunction contained brackets break bxor cand cansee capstr case
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
23 syntax keyword mushFunction contained caseall cat ceil center checkpass children
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
24 syntax keyword mushFunction contained chr clone cmds cnetpost comp con config conn
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
25 syntax keyword mushFunction contained controls convsecs convtime convutcsecs cor
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
26 syntax keyword mushFunction contained cos create ctime ctu dec decrypt default
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
27 syntax keyword mushFunction contained delete die dig digest dist2d dist3d div
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
28 syntax keyword mushFunction contained division divscope doing downdiv dynhelp e
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
29 syntax keyword mushFunction contained edefault edit element elements elist elock
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
30 syntax keyword mushFunction contained emit empire empower encrypt endtag entrances
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
31 syntax keyword mushFunction contained eq escape etimefmt eval exit exp extract fdiv
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
32 syntax keyword mushFunction contained filter filterbool findable first firstof
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
33 syntax keyword mushFunction contained flags flip floor floordiv fmod fold
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
34 syntax keyword mushFunction contained folderstats followers following foreach
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
35 syntax keyword mushFunction contained fraction fullname functions get get_eval grab
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
36 syntax keyword mushFunction contained graball grep grepi gt gte hasattr hasattrp
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
37 syntax keyword mushFunction contained hasattrpval hasattrval hasdivpower hasflag
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
38 syntax keyword mushFunction contained haspower haspowergroup hastype height hidden
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
39 syntax keyword mushFunction contained home host hostname html idle idlesecs
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
40 syntax keyword mushFunction contained idle_average idle_times idle_total if ifelse
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
41 syntax keyword mushFunction contained ilev iname inc index indiv indivall insert
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
42 syntax keyword mushFunction contained inum ipaddr isdaylight isdbref isint isnum
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
43 syntax keyword mushFunction contained isword itemize items iter itext last lattr
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
44 syntax keyword mushFunction contained lcon lcstr ldelete ldivisions left lemit
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
45 syntax keyword mushFunction contained level lexits lflags link list lit ljust lmath
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
46 syntax keyword mushFunction contained ln lnum loc localize locate lock loctree log
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
47 syntax keyword mushFunction contained lparent lplayers lports lpos lsearch lsearchr
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
48 syntax keyword mushFunction contained lstats lt lte lthings lvcon lvexits lvplayers
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
49 syntax keyword mushFunction contained lvthings lwho mail maildstats mailfrom
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
50 syntax keyword mushFunction contained mailfstats mailstats mailstatus mailsubject
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
51 syntax keyword mushFunction contained mailtime map match matchall max mean median
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
52 syntax keyword mushFunction contained member merge mid min mix mod modulo modulus
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
53 syntax keyword mushFunction contained money mtime mudname mul munge mwho name nand
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
54 syntax keyword mushFunction contained nattr ncon nearby neq nexits next nor not
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
55 syntax keyword mushFunction contained nplayers nsemit nslemit nsoemit nspemit
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
56 syntax keyword mushFunction contained nsremit nszemit nthings null num nvcon
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
57 syntax keyword mushFunction contained nvexits nvplayers nvthings obj objeval objid
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
58 syntax keyword mushFunction contained objmem oemit ooref open or ord orflags
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
59 syntax keyword mushFunction contained orlflags orlpowers orpowers owner parent
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
60 syntax keyword mushFunction contained parse pcreate pemit pi pickrand playermem
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
61 syntax keyword mushFunction contained pmatch poll ports pos poss power powergroups
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
62 syntax keyword mushFunction contained powers powover program prompt pueblo quitprog
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
63 syntax keyword mushFunction contained quota r rand randword recv regedit regeditall
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
64 syntax keyword mushFunction contained regeditalli regediti regmatch regmatchi
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
65 syntax keyword mushFunction contained regrab regraball regraballi regrabi regrep
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
66 syntax keyword mushFunction contained regrepi remainder remit remove repeat replace
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
67 syntax keyword mushFunction contained rest restarts restarttime reswitch
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
68 syntax keyword mushFunction contained reswitchall reswitchalli reswitchi reverse
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
69 syntax keyword mushFunction contained revwords right rjust rloc rnum room root
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
70 syntax keyword mushFunction contained round s scan scramble search secs secure sent
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
71 syntax keyword mushFunction contained set setdiff setinter setq setr setunion sha0
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
72 syntax keyword mushFunction contained shl shr shuffle sign signal sin sort sortby
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
73 syntax keyword mushFunction contained soundex soundlike soundslike space spellnum
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
74 syntax keyword mushFunction contained splice sql sqlescape sqrt squish ssl
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
75 syntax keyword mushFunction contained starttime stats stddev step strcat strinsert
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
76 syntax keyword mushFunction contained stripaccents stripansi strlen strmatch
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
77 syntax keyword mushFunction contained strreplace sub subj switch switchall t table
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
78 syntax keyword mushFunction contained tag tagwrap tan tel terminfo textfile
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
79 syntax keyword mushFunction contained tilde2blank time timefmt timestring tr
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
80 syntax keyword mushFunction contained trigger trim trimpenn trimtiny trunc type u
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
81 syntax keyword mushFunction contained ucstr udefault ufun uldefault ulocal updiv
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
82 syntax keyword mushFunction contained utctime v vadd val valid vcross vdim vdot
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
83 syntax keyword mushFunction contained version visible vmag vmax vmin vmul vsub
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
84 syntax keyword mushFunction contained vtattr vtcount vtcreate vtdestroy vtlcon
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
85 syntax keyword mushFunction contained vtloc vtlocate vtmaster vtname vtref vttel
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
86 syntax keyword mushFunction contained vunit wait where width wipe wordpos words
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
87 syntax keyword mushFunction contained wrap xcon xexits xget xor xplayers xthings
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
88 syntax keyword mushFunction contained xvcon xvexits xvplayers xvthings zemit zfun
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
89 syntax keyword mushFunction contained zmwho zone zwho
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
90
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 " only highligh functions when they have an in-bracket immediately after
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
92 syntax match mushFunctionBrackets "\i*(" contains=mushFunction
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
93 "
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 " regular mush commands
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
95 syntax keyword mushAtCommandList contained @ALLHALT @ALLQUOTA @ASSERT @ATRCHOWN @ATRLOCK @ATTRIBUTE @BOOT
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
96 syntax keyword mushAtCommandList contained @BREAK @CEMIT @CHANNEL @CHAT @CHOWN @CHOWNALL @CHZONE @CHZONEALL
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
97 syntax keyword mushAtCommandList contained @CLOCK @CLONE @COBJ @COMMAND @CONFIG @CPATTR @CREATE @CRPLOG @DBCK
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
98 syntax keyword mushAtCommandList contained @DECOMPILE @DESTROY @DIG @DISABLE @DIVISION @DOING @DOLIST @DRAIN
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
99 syntax keyword mushAtCommandList contained @DUMP @EDIT @ELOCK @EMIT @EMPOWER @ENABLE @ENTRANCES @EUNLOCK @FIND
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
100 syntax keyword mushAtCommandList contained @FIRSTEXIT @FLAG @FORCE @FUNCTION @EDIT @GREP @HALT @HIDE @HOOK @KICK
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
101 syntax keyword mushAtCommandList contained @LEMIT @LEVEL @LINK @LIST @LISTMOTD @LOCK @LOG @LOGWIPE @LSET @MAIL @MALIAS
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
102 syntax keyword mushAtCommandList contained @MAP @MOTD @MVATTR @NAME @NEWPASSWORD @NOTIFY @NSCEMIT @NSEMIT @NSLEMIT
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
103 syntax keyword mushAtCommandList contained @NSOEMIT @NSPEMIT @NSPEMIT @NSREMIT @NSZEMIT @NUKE @OEMIT @OPEN @PARENT @PASSWORD
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
104 syntax keyword mushAtCommandList contained @PCREATE @PEMIT @POLL @POOR @POWERLEVEL @PROGRAM @PROMPT @PS @PURGE @QUOTA
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
105 syntax keyword mushAtCommandList contained @READCACHE @RECYCLE @REJECTMOTD @REMIT @RESTART @SCAN @SEARCH @SELECT @SET
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
106 syntax keyword mushAtCommandList contained @SHUTDOWN @SITELOCK @SNOOP @SQL @SQUOTA @STATS @SWITCH @SWEEP @SWITCH @TELEPORT
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
107 syntax keyword mushAtCommandList contained @TRIGGER @ULOCK @UNDESTROY @UNLINK @UNLOCK @UNRECYCLE @UPTIME @UUNLOCK @VERB
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
108 syntax keyword mushAtCommandList contained @VERSION @WAIT @WALL @WARNINGS @WCHECK @WHEREIS @WIPE @ZCLONE @ZEMIT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syntax match mushCommand "@\i\I*" contains=mushAtCommandList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
112 syntax keyword mushCommand AHELP ANEWS ATTRIB_SET BRIEF BRIEF BUY CHANGES DESERT
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
113 syntax keyword mushCommand DISMISS DROP EMPTY ENTER EXAMINE FOLLOW GET GIVE GOTO
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
114 syntax keyword mushCommand HELP HUH_COMMAND INVENTORY INVENTORY LOOK LEAVE LOOK
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
115 syntax keyword mushCommand GOTO NEWS PAGE PAGE POSE RULES SAY SCORE SEMIPOSE
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
116 syntax keyword mushCommand SPECIALNEWS TAKE TEACH THINK UNFOLLOW USE WHISPER WHISPER
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
117 syntax keyword mushCommand WARN_ON_MISSING WHISPER WITH
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syntax match mushSpecial "\*\|!\|=\|-\|\\\|+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syntax match mushSpecial2 contained "\*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
122 syn region mushString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=mushSpecial,mushSpecial2,@Spell
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
123
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
124
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syntax match mushIdentifier "&[^ ]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syntax match mushVariable "%r\|%t\|%cr\|%[A-Za-z0-9]\+\|%#\|##\|here"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 " numbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syntax match mushNumber +[0-9]\++
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " A comment line starts with a or # or " at the start of the line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 " or an @@
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syntax keyword mushTodo contained TODO FIXME XXX
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
135 syntax cluster mushCommentGroup contains=mushTodo
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
136 syntax match mushComment "^\s*@@.*$" contains=mushTodo
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
137 syntax match mushComment "^#[^define|^ifdef|^else|^pragma|^ifndef|^echo|^elif|^undef|^warning].*$" contains=mushTodo
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
138 syntax match mushComment "^#$" contains=mushTodo
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
139 syntax region mushComment matchgroup=mushCommentStart start="/@@" end="@@/" contains=@mushCommentGroup,mushCommentStartError,mushCommentString,@Spell
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
140 syntax region mushCommentString contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end=+@@/+me=s-1 contains=mushCommentSkip
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
141 syntax match mushCommentSkip contained "^\s*@@\($\|\s\+\)"
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
142
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
143
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
144 syntax match mushCommentStartError display "/@@"me=e-1 contained
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
145
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
146 " syntax match mushComment +^".*$+ contains=mushTodo
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
147 " Work on this one
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
148 " syntax match mushComment +^#.*$+ contains=mushTodo
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
149
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
150 syn region mushPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" end="//"me=s-1 contains=mushComment
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
151 syn match mushPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>"
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
152
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
153 syn cluster mushPreProcGroup contains=mushPreCondit,mushIncluded,mushInclude,mushDefine,mushSpecial,mushString,mushCommentSkip,mushCommentString,@mushCommentGroup,mushCommentStartError
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
154
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
155 syn region mushIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
156 syn match mushIncluded display contained "<[^>]*>"
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
157 syn match mushInclude display "^\s*\(%:\|#\)\s*include\>\s*["<]" contains=mushIncluded
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
158 syn region mushDefine start="^\s*\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" end="//"me=s-1 contains=ALLBUT,@mushPreProcGroup,@Spell
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
159 syn region mushPreProc start="^\s*\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@mushPreProcGroup
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
160
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syntax region mushFuncBoundaries start="\[" end="\]" contains=mushFunction,mushFlag,mushAttributes,mushNumber,mushCommand,mushVariable,mushSpecial2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 " FLAGS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syntax keyword mushFlag PLAYER ABODE BUILDER CHOWN_OK DARK FLOATING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syntax keyword mushFlag GOING HAVEN INHERIT JUMP_OK KEY LINK_OK MONITOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syntax keyword mushFlag NOSPOOF OPAQUE QUIET STICKY TRACE UNFINDABLE VISUAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syntax keyword mushFlag WIZARD PARENT_OK ZONE AUDIBLE CONNECTED DESTROY_OK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syntax keyword mushFlag ENTER_OK HALTED IMMORTAL LIGHT MYOPIC PUPPET TERSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syntax keyword mushFlag ROBOT SAFE TRANSPARENT VERBOSE CONTROL_OK COMMANDS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syntax keyword mushAttribute aahear aclone aconnect adesc adfail adisconnect
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syntax keyword mushAttribute adrop aefail aenter afail agfail ahear akill
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syntax keyword mushAttribute aleave alfail alias amhear amove apay arfail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syntax keyword mushAttribute asucc atfail atport aufail ause away charges
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syntax keyword mushAttribute cost desc dfail drop ealias efail enter fail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syntax keyword mushAttribute filter forwardlist gfail idesc idle infilter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syntax keyword mushAttribute inprefix kill lalias last lastsite leave lfail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syntax keyword mushAttribute listen move odesc odfail odrop oefail oenter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syntax keyword mushAttribute ofail ogfail okill oleave olfail omove opay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syntax keyword mushAttribute orfail osucc otfail otport oufail ouse oxenter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syntax keyword mushAttribute oxleave oxtport pay prefix reject rfail runout
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syntax keyword mushAttribute semaphore sex startup succ tfail tport ufail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syntax keyword mushAttribute use va vb vc vd ve vf vg vh vi vj vk vl vm vn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syntax keyword mushAttribute vo vp vq vr vs vt vu vv vw vx vy vz
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 if version >= 508 || !exists("did_mush_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 let did_mush_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 " The default methods for highlighting. Can be overridden later
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 HiLink mushAttribute Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 HiLink mushCommand Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 HiLink mushNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 HiLink mushSetting PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 HiLink mushFunction Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 HiLink mushVariable Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 HiLink mushSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 HiLink mushTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 HiLink mushFlag Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 HiLink mushIdentifier Identifier
557
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
207 HiLink mushDefine Macro
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
208 HiLink mushPreProc PreProc
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
209 HiLink mushPreProcGroup PreProc
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
210 HiLink mushPreCondit PreCondit
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
211 HiLink mushIncluded cString
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
212 HiLink mushInclude Include
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
213
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
214
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
215
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
216 " Comments
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
217 HiLink mushCommentStart mushComment
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
218 HiLink mushComment Comment
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
219 HiLink mushCommentString mushString
862863033fdd updated for version 7.0158
vimboss
parents: 7
diff changeset
220
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 let b:current_syntax = "mush"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 " mush: ts=17