annotate runtime/syntax/mush.vim @ 33392:3d3d0492824e

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