|
fyrenmoo@2671
|
1 |
" Vim syntax file |
|
fyrenmoo@2671
|
2 |
" Language: SourcePawn |
|
fyrenmoo@2671
|
3 |
" Generated by vimsyntax.pl |
|
fyrenmoo@2671
|
4 |
|
|
fyrenmoo@2671
|
5 |
" Quit when a (custom) syntax file was already loaded |
|
fyrenmoo@2671
|
6 |
"if exists("b:current_syntax") |
|
fyrenmoo@2671
|
7 |
" finish |
|
fyrenmoo@2671
|
8 |
"endif |
|
fyrenmoo@2671
|
9 |
|
|
fyrenmoo@2671
|
10 |
" A bunch of useful C keywords |
|
fyrenmoo@2671
|
11 |
syn keyword cStatement goto break return continue assert state sleep exit |
|
fyrenmoo@2671
|
12 |
syn keyword cLabel case default |
|
fyrenmoo@2671
|
13 |
syn keyword cConditional if else switch |
|
fyrenmoo@2671
|
14 |
syn keyword cRepeat while for do |
|
fyrenmoo@2671
|
15 |
|
|
fyrenmoo@2671
|
16 |
syn keyword cTodo contained TODO FIXME XXX |
|
fyrenmoo@2671
|
17 |
|
|
fyrenmoo@2671
|
18 |
" cCommentGroup allows adding matches for special things in comments |
|
fyrenmoo@2671
|
19 |
syn cluster cCommentGroup contains=cTodo |
|
fyrenmoo@2671
|
20 |
|
|
fyrenmoo@2671
|
21 |
" String and Character constants |
|
fyrenmoo@2671
|
22 |
" Highlight special characters (those which have a backslash) differently |
|
fyrenmoo@2671
|
23 |
syn match cSpecial display contained "\\\(x\x\+\|\o\{1,3}\|.\|$\)" |
|
fyrenmoo@2671
|
24 |
if !exists("c_no_utf") |
|
fyrenmoo@2671
|
25 |
syn match cSpecial display contained "\\\(u\x\{4}\|U\x\{8}\)" |
|
fyrenmoo@2671
|
26 |
endif |
|
fyrenmoo@2671
|
27 |
if exists("c_no_cformat") |
|
fyrenmoo@2671
|
28 |
syn region cString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,@Spell |
|
fyrenmoo@2671
|
29 |
" cCppString: same as cString, but ends at end of line |
|
fyrenmoo@2671
|
30 |
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,@Spell |
|
fyrenmoo@2671
|
31 |
else |
|
fyrenmoo@2671
|
32 |
if !exists("c_no_c99") " ISO C99 |
|
fyrenmoo@2671
|
33 |
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlLjzt]\|ll\|hh\)\=\([aAbdiuoxXDOUfFeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained |
|
fyrenmoo@2671
|
34 |
else |
|
fyrenmoo@2671
|
35 |
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlL]\|ll\)\=\([bdiuoxXDOUfeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained |
|
fyrenmoo@2671
|
36 |
endif |
|
fyrenmoo@2671
|
37 |
syn match cFormat display "%%" contained |
|
fyrenmoo@2671
|
38 |
syn region cString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell |
|
fyrenmoo@2671
|
39 |
" cCppString: same as cString, but ends at end of line |
|
fyrenmoo@2671
|
40 |
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell |
|
fyrenmoo@2671
|
41 |
endif |
|
fyrenmoo@2671
|
42 |
|
|
fyrenmoo@2671
|
43 |
syn match cCharacter "L\='[^\\]'" |
|
fyrenmoo@2671
|
44 |
syn match cCharacter "L'[^']*'" contains=cSpecial |
|
fyrenmoo@2671
|
45 |
if exists("c_gnu") |
|
fyrenmoo@2671
|
46 |
syn match cSpecialError "L\='\\[^'\"?\\abefnrtv]'" |
|
fyrenmoo@2671
|
47 |
syn match cSpecialCharacter "L\='\\['\"?\\abefnrtv]'" |
|
fyrenmoo@2671
|
48 |
else |
|
fyrenmoo@2671
|
49 |
syn match cSpecialError "L\='\\[^'\"?\\abfnrtv]'" |
|
fyrenmoo@2671
|
50 |
syn match cSpecialCharacter "L\='\\['\"?\\abfnrtv]'" |
|
fyrenmoo@2671
|
51 |
endif |
|
fyrenmoo@2671
|
52 |
syn match cSpecialCharacter display "L\='\\\o\{1,3}'" |
|
fyrenmoo@2671
|
53 |
syn match cSpecialCharacter display "'\\x\x\{1,2}'" |
|
fyrenmoo@2671
|
54 |
syn match cSpecialCharacter display "L'\\x\x\+'" |
|
fyrenmoo@2671
|
55 |
|
|
fyrenmoo@2671
|
56 |
"when wanted, highlight trailing white space |
|
fyrenmoo@2671
|
57 |
if exists("c_space_errors") |
|
fyrenmoo@2671
|
58 |
if !exists("c_no_trail_space_error") |
|
fyrenmoo@2671
|
59 |
syn match cSpaceError display excludenl "\s\+$" |
|
fyrenmoo@2671
|
60 |
endif |
|
fyrenmoo@2671
|
61 |
if !exists("c_no_tab_space_error") |
|
fyrenmoo@2671
|
62 |
syn match cSpaceError display " \+\t"me=e-1 |
|
fyrenmoo@2671
|
63 |
endif |
|
fyrenmoo@2671
|
64 |
endif |
|
fyrenmoo@2671
|
65 |
|
|
fyrenmoo@2671
|
66 |
" This should be before cErrInParen to avoid problems with #define ({ xxx }) |
|
fyrenmoo@2671
|
67 |
syntax region cBlock start="{" end="}" transparent fold |
|
fyrenmoo@2671
|
68 |
|
|
fyrenmoo@2671
|
69 |
"catch errors caused by wrong parenthesis and brackets |
|
fyrenmoo@2671
|
70 |
" also accept <% for {, %> for }, <: for [ and :> for ] (C99) |
|
fyrenmoo@2671
|
71 |
" But avoid matching <::. |
|
fyrenmoo@2671
|
72 |
syn cluster cParenGroup contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cCommentSkip,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cNumbersCom |
|
fyrenmoo@2671
|
73 |
if exists("c_no_curly_error") |
|
fyrenmoo@2671
|
74 |
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell |
|
fyrenmoo@2671
|
75 |
" cCppParen: same as cParen but ends at end-of-line; used in cDefine |
|
fyrenmoo@2671
|
76 |
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell |
|
fyrenmoo@2671
|
77 |
syn match cParenError display ")" |
|
fyrenmoo@2671
|
78 |
syn match cErrInParen display contained "^[{}]\|^<%\|^%>" |
|
fyrenmoo@2671
|
79 |
elseif exists("c_no_bracket_error") |
|
fyrenmoo@2671
|
80 |
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell |
|
fyrenmoo@2671
|
81 |
" cCppParen: same as cParen but ends at end-of-line; used in cDefine |
|
fyrenmoo@2671
|
82 |
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell |
|
fyrenmoo@2671
|
83 |
syn match cParenError display ")" |
|
fyrenmoo@2671
|
84 |
syn match cErrInParen display contained "[{}]\|<%\|%>" |
|
fyrenmoo@2671
|
85 |
else |
|
fyrenmoo@2671
|
86 |
syn region cParen transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell |
|
fyrenmoo@2671
|
87 |
" cCppParen: same as cParen but ends at end-of-line; used in cDefine |
|
fyrenmoo@2671
|
88 |
syn region cCppParen transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell |
|
fyrenmoo@2671
|
89 |
syn match cParenError display "[\])]" |
|
fyrenmoo@2671
|
90 |
syn match cErrInParen display contained "[\]{}]\|<%\|%>" |
|
fyrenmoo@2671
|
91 |
syn region cBracket transparent start='\[\|<::\@!' end=']\|:>' contains=ALLBUT,@cParenGroup,cErrInParen,cCppParen,cCppBracket,cCppString,@Spell |
|
fyrenmoo@2671
|
92 |
" cCppBracket: same as cParen but ends at end-of-line; used in cDefine |
|
fyrenmoo@2671
|
93 |
syn region cCppBracket transparent start='\[\|<::\@!' skip='\\$' excludenl end=']\|:>' end='$' contained contains=ALLBUT,@cParenGroup,cErrInParen,cParen,cBracket,cString,@Spell |
|
fyrenmoo@2671
|
94 |
syn match cErrInBracket display contained "[);{}]\|<%\|%>" |
|
fyrenmoo@2671
|
95 |
endif |
|
fyrenmoo@2671
|
96 |
|
|
fyrenmoo@2671
|
97 |
"integer number, or floating point number without a dot and with "f". |
|
fyrenmoo@2671
|
98 |
syn case ignore |
|
fyrenmoo@2671
|
99 |
syn match cNumbers display transparent "\<\d\|\.\d" contains=cNumber,cFloat |
|
fyrenmoo@2671
|
100 |
" Same (for comments) |
|
fyrenmoo@2671
|
101 |
syn match cNumbersCom display contained transparent "\<\d\|\.\d" contains=cNumber,cFloat |
|
fyrenmoo@2671
|
102 |
syn match cNumber display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>" |
|
fyrenmoo@2671
|
103 |
"hex number |
|
fyrenmoo@2671
|
104 |
syn match cNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>" |
|
fyrenmoo@2671
|
105 |
syn match cFloat display contained "\d\+f" |
|
fyrenmoo@2671
|
106 |
"floating point number, with dot, optional exponent |
|
fyrenmoo@2671
|
107 |
syn match cFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=" |
|
fyrenmoo@2671
|
108 |
"floating point number, starting with a dot, optional exponent |
|
fyrenmoo@2671
|
109 |
syn match cFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>" |
|
fyrenmoo@2671
|
110 |
"floating point number, without dot, with exponent |
|
fyrenmoo@2671
|
111 |
syn match cFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>" |
|
fyrenmoo@2671
|
112 |
if !exists("c_no_c99") |
|
fyrenmoo@2671
|
113 |
"hexadecimal floating point number, optional leading digits, with dot, with exponent |
|
fyrenmoo@2671
|
114 |
syn match cFloat display contained "0x\x*\.\x\+p[-+]\=\d\+[fl]\=\>" |
|
fyrenmoo@2671
|
115 |
"hexadecimal floating point number, with leading digits, optional dot, with exponent |
|
fyrenmoo@2671
|
116 |
syn match cFloat display contained "0x\x\+\.\=p[-+]\=\d\+[fl]\=\>" |
|
fyrenmoo@2671
|
117 |
endif |
|
fyrenmoo@2671
|
118 |
|
|
fyrenmoo@2671
|
119 |
syn case match |
|
fyrenmoo@2671
|
120 |
|
|
fyrenmoo@2671
|
121 |
if exists("c_comment_strings") |
|
fyrenmoo@2671
|
122 |
" A comment can contain cString, cCharacter and cNumber. |
|
fyrenmoo@2671
|
123 |
" But a "*/" inside a cString in a cComment DOES end the comment! So we |
|
fyrenmoo@2671
|
124 |
" need to use a special type of cString: cCommentString, which also ends on |
|
fyrenmoo@2671
|
125 |
" "*/", and sees a "*" at the start of the line as comment again. |
|
fyrenmoo@2671
|
126 |
" Unfortunately this doesn't very well work for // type of comments :-( |
|
fyrenmoo@2671
|
127 |
syntax match cCommentSkip contained "^\s*\*\($\|\s\+\)" |
|
fyrenmoo@2671
|
128 |
syntax region cCommentString contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1 contains=cSpecial,cCommentSkip |
|
fyrenmoo@2671
|
129 |
syntax region cComment2String contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end="$" contains=cSpecial |
|
fyrenmoo@2671
|
130 |
syntax region cCommentL start="//" skip="\\$" end="$" keepend contains=@cCommentGroup,cComment2String,cCharacter,cNumbersCom,cSpaceError,@Spell |
|
fyrenmoo@2671
|
131 |
if exists("c_no_comment_fold") |
|
fyrenmoo@2671
|
132 |
" Use "extend" here to have preprocessor lines not terminate halfway a |
|
fyrenmoo@2671
|
133 |
" comment. |
|
fyrenmoo@2671
|
134 |
syntax region cComment matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cCommentString,cCharacter,cNumbersCom,cSpaceError,@Spell extend |
|
fyrenmoo@2671
|
135 |
else |
|
fyrenmoo@2671
|
136 |
syntax region cComment matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cCommentString,cCharacter,cNumbersCom,cSpaceError,@Spell fold extend |
|
fyrenmoo@2671
|
137 |
endif |
|
fyrenmoo@2671
|
138 |
else |
|
fyrenmoo@2671
|
139 |
syn region cCommentL start="//" skip="\\$" end="$" keepend contains=@cCommentGroup,cSpaceError,@Spell |
|
fyrenmoo@2671
|
140 |
if exists("c_no_comment_fold") |
|
fyrenmoo@2671
|
141 |
syn region cComment matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cSpaceError,@Spell |
|
fyrenmoo@2671
|
142 |
else |
|
fyrenmoo@2671
|
143 |
syn region cComment matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cSpaceError,@Spell fold |
|
fyrenmoo@2671
|
144 |
endif |
|
fyrenmoo@2671
|
145 |
endif |
|
fyrenmoo@2671
|
146 |
" keep a // comment separately, it terminates a preproc. conditional |
|
fyrenmoo@2671
|
147 |
syntax match cCommentError display "\*/" |
|
fyrenmoo@2671
|
148 |
syntax match cCommentStartError display "/\*"me=e-1 contained |
|
fyrenmoo@2671
|
149 |
|
|
fyrenmoo@2671
|
150 |
syn keyword cOperator sizeof tagof state defined char |
|
fyrenmoo@2671
|
151 |
|
|
fyrenmoo@2671
|
152 |
syn keyword cTag any bool Fixed Float String Function |
|
fyrenmoo@2671
|
153 |
|
|
fyrenmoo@2671
|
154 |
syn keyword cStructure enum |
|
fyrenmoo@2671
|
155 |
syn keyword cStorageClass static const stock native forward |
|
fyrenmoo@2671
|
156 |
|
|
fyrenmoo@2671
|
157 |
" Constants |
|
fyrenmoo@2671
|
158 |
" ====== |
|
fyrenmoo@2671
|
159 |
syn keyword cConstant cellbits cellmax cellmin charbits charmax charmin ucharmax __Pawn debug |
|
fyrenmoo@2671
|
160 |
syn keyword cConstant true false |
|
fyrenmoo@2671
|
161 |
|
|
fyrenmoo@2671
|
162 |
" admin.inc |
|
fyrenmoo@2671
|
163 |
syn keyword cFunction DumpAdminCache AddCommandOverride GetCommandOverride UnsetCommandOverride |
|
fyrenmoo@2671
|
164 |
syn keyword cFunction CreateAdmGroup FindAdmGroup SetAdmGroupAddFlag GetAdmGroupAddFlag |
|
fyrenmoo@2671
|
165 |
syn keyword cFunction GetAdmGroupAddFlags SetAdmGroupImmunity GetAdmGroupImmunity SetAdmGroupImmuneFrom |
|
fyrenmoo@2671
|
166 |
syn keyword cFunction GetAdmGroupImmuneCount GetAdmGroupImmuneFrom AddAdmGroupCmdOverride GetAdmGroupCmdOverride |
|
fyrenmoo@2671
|
167 |
syn keyword cFunction RegisterAuthIdentType CreateAdmin GetAdminUsername BindAdminIdentity |
|
fyrenmoo@2671
|
168 |
syn keyword cFunction SetAdminFlag GetAdminFlag GetAdminFlags AdminInheritGroup |
|
fyrenmoo@2671
|
169 |
syn keyword cFunction GetAdminGroupCount GetAdminGroup SetAdminPassword GetAdminPassword |
|
fyrenmoo@2671
|
170 |
syn keyword cFunction FindAdminByIdentity RemoveAdmin FlagBitsToBitArray FlagBitArrayToBits |
|
fyrenmoo@2671
|
171 |
syn keyword cFunction FlagArrayToBits FlagBitsToArray FindFlagByName FindFlagByChar |
|
fyrenmoo@2671
|
172 |
syn keyword cFunction ReadFlagString CanAdminTarget CreateAuthMethod SetAdmGroupImmunityLevel |
|
fyrenmoo@2671
|
173 |
syn keyword cFunction GetAdmGroupImmunityLevel SetAdminImmunityLevel GetAdminImmunityLevel FlagToBit |
|
fyrenmoo@2671
|
174 |
syn keyword cFunction BitToFlag |
|
fyrenmoo@2671
|
175 |
syn keyword cConstant Admin_Reservation Admin_Generic Admin_Kick Admin_Ban |
|
fyrenmoo@2671
|
176 |
syn keyword cConstant Admin_Unban Admin_Slay Admin_Changemap Admin_Convars |
|
fyrenmoo@2671
|
177 |
syn keyword cConstant Admin_Config Admin_Chat Admin_Vote Admin_Password |
|
fyrenmoo@2671
|
178 |
syn keyword cConstant Admin_RCON Admin_Cheats Admin_Root Admin_Custom1 |
|
fyrenmoo@2671
|
179 |
syn keyword cConstant Admin_Custom2 Admin_Custom3 Admin_Custom4 Admin_Custom5 |
|
fyrenmoo@2671
|
180 |
syn keyword cConstant Admin_Custom6 AdminFlags_TOTAL ADMFLAG_RESERVATION ADMFLAG_GENERIC |
|
fyrenmoo@2671
|
181 |
syn keyword cConstant ADMFLAG_KICK ADMFLAG_BAN ADMFLAG_UNBAN ADMFLAG_SLAY |
|
fyrenmoo@2671
|
182 |
syn keyword cConstant ADMFLAG_CHANGEMAP ADMFLAG_CONVARS ADMFLAG_CONFIG ADMFLAG_CHAT |
|
fyrenmoo@2671
|
183 |
syn keyword cConstant ADMFLAG_VOTE ADMFLAG_PASSWORD ADMFLAG_RCON ADMFLAG_CHEATS |
|
fyrenmoo@2671
|
184 |
syn keyword cConstant ADMFLAG_ROOT ADMFLAG_CUSTOM1 ADMFLAG_CUSTOM2 ADMFLAG_CUSTOM3 |
|
fyrenmoo@2671
|
185 |
syn keyword cConstant ADMFLAG_CUSTOM4 ADMFLAG_CUSTOM5 ADMFLAG_CUSTOM6 AUTHMETHOD_STEAM |
|
fyrenmoo@2671
|
186 |
syn keyword cConstant AUTHMETHOD_IP AUTHMETHOD_NAME Override_Command Override_CommandGroup |
|
fyrenmoo@2671
|
187 |
syn keyword cConstant Command_Deny Command_Allow Immunity_Default Immunity_Global |
|
fyrenmoo@2671
|
188 |
syn keyword cConstant INVALID_GROUP_ID INVALID_ADMIN_ID Access_Real Access_Effective |
|
fyrenmoo@2671
|
189 |
syn keyword cConstant AdminCache_Overrides AdminCache_Groups AdminCache_Admins |
|
fyrenmoo@2671
|
190 |
syn keyword cTag AdminFlag OverrideType OverrideRule ImmunityType |
|
fyrenmoo@2671
|
191 |
syn keyword cTag GroupId AdminId AdmAccessMode AdminCachePart |
|
fyrenmoo@2671
|
192 |
syn keyword cForward OnRebuildAdminCache |
|
fyrenmoo@2671
|
193 |
|
|
fyrenmoo@2671
|
194 |
" adminmenu.inc |
|
fyrenmoo@2671
|
195 |
syn keyword cFunction GetAdminTopMenu AddTargetsToMenu AddTargetsToMenu2 RedisplayAdminMenu |
|
fyrenmoo@2671
|
196 |
syn keyword cConstant ADMINMENU_PLAYERCOMMANDS ADMINMENU_SERVERCOMMANDS ADMINMENU_VOTINGCOMMANDS |
|
fyrenmoo@2671
|
197 |
syn keyword cForward OnAdminMenuCreated OnAdminMenuReady |
|
fyrenmoo@2671
|
198 |
|
|
fyrenmoo@2671
|
199 |
" adt.inc |
|
fyrenmoo@2671
|
200 |
|
|
fyrenmoo@2671
|
201 |
" adt_array.inc |
|
fyrenmoo@2671
|
202 |
syn keyword cFunction ByteCountToCells CreateArray ClearArray CloneArray |
|
fyrenmoo@2671
|
203 |
syn keyword cFunction ResizeArray GetArraySize PushArrayCell PushArrayString |
|
fyrenmoo@2671
|
204 |
syn keyword cFunction PushArrayArray GetArrayCell GetArrayString GetArrayArray |
|
fyrenmoo@2671
|
205 |
syn keyword cFunction SetArrayCell SetArrayString SetArrayArray ShiftArrayUp |
|
fyrenmoo@2671
|
206 |
syn keyword cFunction RemoveFromArray SwapArrayItems FindStringInArray FindValueInArray |
|
fyrenmoo@2671
|
207 |
|
|
fyrenmoo@2671
|
208 |
" adt_stack.inc |
|
fyrenmoo@2671
|
209 |
syn keyword cFunction CreateStack PushStackCell PushStackString PushStackArray |
|
fyrenmoo@2671
|
210 |
syn keyword cFunction PopStackCell PopStackString PopStackArray IsStackEmpty |
|
fyrenmoo@2671
|
211 |
syn keyword cFunction PopStack |
|
fyrenmoo@2671
|
212 |
|
|
fyrenmoo@2671
|
213 |
" adt_trie.inc |
|
fyrenmoo@2671
|
214 |
syn keyword cFunction CreateTrie SetTrieValue SetTrieArray SetTrieString |
|
fyrenmoo@2671
|
215 |
syn keyword cFunction GetTrieValue GetTrieArray GetTrieString RemoveFromTrie |
|
fyrenmoo@2671
|
216 |
syn keyword cFunction ClearTrie GetTrieSize |
|
fyrenmoo@2671
|
217 |
|
|
fyrenmoo@2671
|
218 |
" banning.inc |
|
fyrenmoo@2671
|
219 |
syn keyword cFunction BanClient BanIdentity RemoveBan |
|
fyrenmoo@2671
|
220 |
syn keyword cConstant BANFLAG_AUTO BANFLAG_IP BANFLAG_AUTHID BANFLAG_NOKICK |
|
fyrenmoo@2671
|
221 |
syn keyword cForward OnBanClient OnBanIdentity OnRemoveBan |
|
fyrenmoo@2671
|
222 |
|
|
fyrenmoo@2671
|
223 |
" bitbuffer.inc |
|
fyrenmoo@2671
|
224 |
syn keyword cFunction BfWriteBool BfWriteByte BfWriteChar BfWriteShort |
|
fyrenmoo@2671
|
225 |
syn keyword cFunction BfWriteWord BfWriteNum BfWriteFloat BfWriteString |
|
fyrenmoo@2671
|
226 |
syn keyword cFunction BfWriteEntity BfWriteAngle BfWriteCoord BfWriteVecCoord |
|
fyrenmoo@2671
|
227 |
syn keyword cFunction BfWriteVecNormal BfWriteAngles BfReadBool BfReadByte |
|
fyrenmoo@2671
|
228 |
syn keyword cFunction BfReadChar BfReadShort BfReadWord BfReadNum |
|
fyrenmoo@2671
|
229 |
syn keyword cFunction BfReadFloat BfReadString BfReadEntity BfReadAngle |
|
fyrenmoo@2671
|
230 |
syn keyword cFunction BfReadCoord BfReadVecCoord BfReadVecNormal BfReadAngles |
|
fyrenmoo@2671
|
231 |
syn keyword cFunction BfGetNumBytesLeft |
|
fyrenmoo@2671
|
232 |
|
|
fyrenmoo@2671
|
233 |
" clientprefs.inc |
|
fyrenmoo@2671
|
234 |
syn keyword cFunction RegClientCookie FindClientCookie SetClientCookie GetClientCookie |
|
fyrenmoo@2671
|
235 |
syn keyword cFunction AreClientCookiesCached SetCookiePrefabMenu SetCookieMenuItem ShowCookieMenu |
|
fyrenmoo@2671
|
236 |
syn keyword cFunction GetCookieIterator ReadCookieIterator GetCookieAccess |
|
fyrenmoo@2671
|
237 |
syn keyword cConstant CookieAccess_Public CookieAccess_Protected CookieAccess_Private CookieMenu_YesNo |
|
fyrenmoo@2671
|
238 |
syn keyword cConstant CookieMenu_YesNo_Int CookieMenu_OnOff CookieMenu_OnOff_Int CookieMenuAction_DisplayOption |
|
fyrenmoo@2671
|
239 |
syn keyword cConstant CookieMenuAction_SelectOption |
|
fyrenmoo@2671
|
240 |
syn keyword cTag CookieAccess CookieMenu CookieMenuAction CookieMenuHandler |
|
fyrenmoo@2671
|
241 |
syn keyword cForward OnClientCookiesCached |
|
fyrenmoo@2671
|
242 |
|
|
fyrenmoo@2671
|
243 |
" clients.inc |
|
fyrenmoo@2671
|
244 |
syn keyword cFunction GetMaxClients GetClientCount GetClientName GetClientIP |
|
fyrenmoo@2671
|
245 |
syn keyword cFunction GetClientAuthString GetClientUserId IsClientConnected IsClientInGame |
|
fyrenmoo@2671
|
246 |
syn keyword cFunction IsClientInKickQueue IsPlayerInGame IsClientAuthorized IsFakeClient |
|
fyrenmoo@2671
|
247 |
syn keyword cFunction IsClientObserver IsPlayerAlive GetClientInfo GetClientTeam |
|
fyrenmoo@2671
|
248 |
syn keyword cFunction SetUserAdmin GetUserAdmin AddUserFlags RemoveUserFlags |
|
fyrenmoo@2671
|
249 |
syn keyword cFunction SetUserFlagBits GetUserFlagBits CanUserTarget RunAdminCacheChecks |
|
fyrenmoo@2671
|
250 |
syn keyword cFunction NotifyPostAdminCheck CreateFakeClient SetFakeClientConVar GetClientHealth |
|
fyrenmoo@2671
|
251 |
syn keyword cFunction GetClientModel GetClientWeapon GetClientMaxs GetClientMins |
|
fyrenmoo@2671
|
252 |
syn keyword cFunction GetClientAbsAngles GetClientAbsOrigin GetClientArmor GetClientDeaths |
|
fyrenmoo@2671
|
253 |
syn keyword cFunction GetClientFrags GetClientDataRate IsClientTimingOut GetClientTime |
|
fyrenmoo@2671
|
254 |
syn keyword cFunction GetClientLatency GetClientAvgLatency GetClientAvgLoss GetClientAvgChoke |
|
fyrenmoo@2671
|
255 |
syn keyword cFunction GetClientAvgData GetClientAvgPackets GetClientOfUserId KickClient |
|
fyrenmoo@2671
|
256 |
syn keyword cFunction KickClientEx ChangeClientTeam GetClientSerial GetClientFromSerial |
|
fyrenmoo@2671
|
257 |
syn keyword cConstant NetFlow_Outgoing NetFlow_Incoming NetFlow_Both MAXPLAYERS |
|
fyrenmoo@2671
|
258 |
syn keyword cConstant MAX_NAME_LENGTH MaxClients |
|
fyrenmoo@2671
|
259 |
syn keyword cTag NetFlow |
|
fyrenmoo@2671
|
260 |
syn keyword cForward OnClientConnect OnClientConnected OnClientPutInServer OnClientDisconnect |
|
fyrenmoo@2671
|
261 |
syn keyword cForward OnClientDisconnect_Post OnClientCommand OnClientSettingsChanged OnClientAuthorized |
|
fyrenmoo@2671
|
262 |
syn keyword cForward OnClientPreAdminCheck OnClientPostAdminFilter OnClientPostAdminCheck |
|
fyrenmoo@2671
|
263 |
|
|
fyrenmoo@2671
|
264 |
" commandfilters.inc |
|
fyrenmoo@2671
|
265 |
syn keyword cFunction ProcessTargetString ReplyToTargetError |
|
fyrenmoo@2671
|
266 |
syn keyword cConstant MAX_TARGET_LENGTH COMMAND_FILTER_ALIVE COMMAND_FILTER_DEAD COMMAND_FILTER_CONNECTED |
|
fyrenmoo@2671
|
267 |
syn keyword cConstant COMMAND_FILTER_NO_IMMUNITY COMMAND_FILTER_NO_MULTI COMMAND_FILTER_NO_BOTS COMMAND_TARGET_NONE |
|
fyrenmoo@2671
|
268 |
syn keyword cConstant COMMAND_TARGET_NOT_ALIVE COMMAND_TARGET_NOT_DEAD COMMAND_TARGET_NOT_IN_GAME COMMAND_TARGET_IMMUNE |
|
fyrenmoo@2671
|
269 |
syn keyword cConstant COMMAND_TARGET_EMPTY_FILTER COMMAND_TARGET_NOT_HUMAN COMMAND_TARGET_AMBIGUOUS |
|
fyrenmoo@2671
|
270 |
|
|
fyrenmoo@2671
|
271 |
" console.inc |
|
fyrenmoo@2671
|
272 |
syn keyword cFunction ServerCommand InsertServerCommand ServerExecute ClientCommand |
|
fyrenmoo@2671
|
273 |
syn keyword cFunction FakeClientCommand FakeClientCommandEx PrintToServer PrintToConsole |
|
fyrenmoo@2671
|
274 |
syn keyword cFunction ReplyToCommand GetCmdReplySource SetCmdReplySource IsChatTrigger |
|
fyrenmoo@2671
|
275 |
syn keyword cFunction ShowActivity2 ShowActivity ShowActivityEx FormatActivitySource |
|
fyrenmoo@2671
|
276 |
syn keyword cFunction RegServerCmd RegConsoleCmd RegAdminCmd GetCmdArgs |
|
fyrenmoo@2671
|
277 |
syn keyword cFunction GetCmdArg GetCmdArgString CreateConVar FindConVar |
|
fyrenmoo@2671
|
278 |
syn keyword cFunction HookConVarChange UnhookConVarChange GetConVarBool SetConVarBool |
|
fyrenmoo@2671
|
279 |
syn keyword cFunction GetConVarInt SetConVarInt GetConVarFloat SetConVarFloat |
|
fyrenmoo@2671
|
280 |
syn keyword cFunction GetConVarString SetConVarString ResetConVar GetConVarFlags |
|
fyrenmoo@2671
|
281 |
syn keyword cFunction SetConVarFlags GetConVarBounds SetConVarBounds GetConVarName |
|
fyrenmoo@2671
|
282 |
syn keyword cFunction QueryClientConVar GetCommandIterator ReadCommandIterator CheckCommandAccess |
|
fyrenmoo@2671
|
283 |
syn keyword cFunction IsValidConVarChar GetCommandFlags SetCommandFlags FindFirstConCommand |
|
fyrenmoo@2671
|
284 |
syn keyword cFunction FindNextConCommand SendConVarValue AddServerTag RemoveServerTag |
|
fyrenmoo@2671
|
285 |
syn keyword cConstant INVALID_FCVAR_FLAGS ConVarBound_Upper ConVarBound_Lower QUERYCOOKIE_FAILED |
|
fyrenmoo@2671
|
286 |
syn keyword cConstant SM_REPLY_TO_CONSOLE SM_REPLY_TO_CHAT ConVarQuery_Okay ConVarQuery_NotFound |
|
fyrenmoo@2671
|
287 |
syn keyword cConstant ConVarQuery_NotValid ConVarQuery_Protected FCVAR_NONE FCVAR_UNREGISTERED |
|
fyrenmoo@2671
|
288 |
syn keyword cConstant FCVAR_LAUNCHER FCVAR_GAMEDLL FCVAR_CLIENTDLL FCVAR_MATERIAL_SYSTEM |
|
fyrenmoo@2671
|
289 |
syn keyword cConstant FCVAR_PROTECTED FCVAR_SPONLY FCVAR_ARCHIVE FCVAR_NOTIFY |
|
fyrenmoo@2671
|
290 |
syn keyword cConstant FCVAR_USERINFO FCVAR_PRINTABLEONLY FCVAR_UNLOGGED FCVAR_NEVER_AS_STRING |
|
fyrenmoo@2671
|
291 |
syn keyword cConstant FCVAR_REPLICATED FCVAR_CHEAT FCVAR_STUDIORENDER FCVAR_DEMO |
|
fyrenmoo@2671
|
292 |
syn keyword cConstant FCVAR_DONTRECORD FCVAR_PLUGIN FCVAR_DATACACHE FCVAR_TOOLSYSTEM |
|
fyrenmoo@2671
|
293 |
syn keyword cConstant FCVAR_FILESYSTEM FCVAR_NOT_CONNECTED FCVAR_SOUNDSYSTEM FCVAR_ARCHIVE_XBOX |
|
fyrenmoo@2671
|
294 |
syn keyword cConstant FCVAR_INPUTSYSTEM FCVAR_NETWORKSYSTEM FCVAR_VPHYSICS |
|
fyrenmoo@2671
|
295 |
syn keyword cTag ConVarBounds QueryCookie ReplySource ConVarQueryResult |
|
fyrenmoo@2671
|
296 |
syn keyword cTag SrvCmd ConCmd ConVarChanged ConVarQueryFinished |
|
fyrenmoo@2671
|
297 |
|
|
fyrenmoo@2671
|
298 |
" core.inc |
|
fyrenmoo@2671
|
299 |
syn keyword cFunction VerifyCoreVersion |
|
fyrenmoo@2671
|
300 |
syn keyword cConstant SOURCEMOD_PLUGINAPI_VERSION Plugin_Continue Plugin_Changed Plugin_Handled |
|
fyrenmoo@2671
|
301 |
syn keyword cConstant Plugin_Stop Identity_Core Identity_Extension Identity_Plugin |
|
fyrenmoo@2671
|
302 |
syn keyword cConstant Plugin_Running Plugin_Paused Plugin_Error Plugin_Loaded |
|
fyrenmoo@2671
|
303 |
syn keyword cConstant Plugin_Failed Plugin_Created Plugin_Uncompiled Plugin_BadLoad |
|
fyrenmoo@2671
|
304 |
syn keyword cConstant PlInfo_Name PlInfo_Author PlInfo_Description PlInfo_Version |
|
fyrenmoo@2671
|
305 |
syn keyword cConstant PlInfo_URL NULL_VECTOR NULL_STRING |
|
fyrenmoo@2671
|
306 |
syn keyword cTag PlVers Function Action Identity |
|
fyrenmoo@2671
|
307 |
syn keyword cTag PluginStatus PluginInfo Extension SharedPlugin |
|
fyrenmoo@2671
|
308 |
|
|
fyrenmoo@2671
|
309 |
" cstrike.inc |
|
fyrenmoo@2671
|
310 |
syn keyword cFunction CS_RespawnPlayer CS_SwitchTeam |
|
fyrenmoo@2671
|
311 |
syn keyword cConstant CS_TEAM_NONE CS_TEAM_SPECTATOR CS_TEAM_T CS_TEAM_CT |
|
fyrenmoo@2671
|
312 |
syn keyword cConstant CS_SLOT_PRIMARY CS_SLOT_SECONDARY CS_SLOT_GRENADE CS_SLOT_C4 |
|
fyrenmoo@2671
|
313 |
|
|
fyrenmoo@2671
|
314 |
" datapack.inc |
|
fyrenmoo@2671
|
315 |
syn keyword cFunction CreateDataPack WritePackCell WritePackFloat WritePackString |
|
fyrenmoo@2671
|
316 |
syn keyword cFunction ReadPackCell ReadPackFloat ReadPackString ResetPack |
|
fyrenmoo@2671
|
317 |
syn keyword cFunction GetPackPosition SetPackPosition IsPackReadable |
|
fyrenmoo@2671
|
318 |
|
|
fyrenmoo@2671
|
319 |
" dbi.inc |
|
fyrenmoo@2671
|
320 |
syn keyword cFunction SQL_Connect SQL_DefConnect SQL_ConnectCustom SQLite_UseDatabase |
|
fyrenmoo@2671
|
321 |
syn keyword cFunction SQL_ConnectEx SQL_CheckConfig SQL_GetDriver SQL_ReadDriver |
|
fyrenmoo@2671
|
322 |
syn keyword cFunction SQL_GetDriverIdent SQL_GetDriverProduct SQL_GetAffectedRows SQL_GetInsertId |
|
fyrenmoo@2671
|
323 |
syn keyword cFunction SQL_GetError SQL_EscapeString SQL_QuoteString SQL_FastQuery |
|
fyrenmoo@2671
|
324 |
syn keyword cFunction SQL_Query SQL_PrepareQuery SQL_FetchMoreResults SQL_HasResultSet |
|
fyrenmoo@2671
|
325 |
syn keyword cFunction SQL_GetRowCount SQL_GetFieldCount SQL_FieldNumToName SQL_FieldNameToNum |
|
fyrenmoo@2671
|
326 |
syn keyword cFunction SQL_FetchRow SQL_MoreRows SQL_Rewind SQL_FetchString |
|
fyrenmoo@2671
|
327 |
syn keyword cFunction SQL_FetchFloat SQL_FetchInt SQL_IsFieldNull SQL_FetchSize |
|
fyrenmoo@2671
|
328 |
syn keyword cFunction SQL_BindParamInt SQL_BindParamFloat SQL_BindParamString SQL_Execute |
|
fyrenmoo@2671
|
329 |
syn keyword cFunction SQL_LockDatabase SQL_UnlockDatabase SQL_IsSameConnection SQL_TConnect |
|
fyrenmoo@2671
|
330 |
syn keyword cFunction SQL_TQuery |
|
fyrenmoo@2671
|
331 |
syn keyword cConstant DBVal_Error DBVal_TypeMismatch DBVal_Null DBVal_Data |
|
fyrenmoo@2671
|
332 |
syn keyword cConstant DBBind_Int DBBind_Float DBBind_String DBPrio_High |
|
fyrenmoo@2671
|
333 |
syn keyword cConstant DBPrio_Normal DBPrio_Low |
|
fyrenmoo@2671
|
334 |
syn keyword cTag DBResult DBBindType DBPriority SQLTCallback |
|
fyrenmoo@2671
|
335 |
|
|
fyrenmoo@2671
|
336 |
" entity.inc |
|
fyrenmoo@2671
|
337 |
syn keyword cFunction GetMaxEntities GetEntityCount IsValidEntity IsValidEdict |
|
fyrenmoo@2671
|
338 |
syn keyword cFunction IsEntNetworkable CreateEdict RemoveEdict GetEdictFlags |
|
fyrenmoo@2671
|
339 |
syn keyword cFunction SetEdictFlags GetEdictClassname GetEntityNetClass ChangeEdictState |
|
fyrenmoo@2671
|
340 |
syn keyword cFunction GetEntData SetEntData GetEntDataFloat SetEntDataFloat |
|
fyrenmoo@2671
|
341 |
syn keyword cFunction GetEntDataEnt SetEntDataEnt GetEntDataEnt2 SetEntDataEnt2 |
|
fyrenmoo@2671
|
342 |
syn keyword cFunction GetEntDataVector SetEntDataVector GetEntDataString SetEntDataString |
|
fyrenmoo@2671
|
343 |
syn keyword cFunction FindSendPropOffs FindSendPropInfo FindDataMapOffs GetEntSendPropOffs |
|
fyrenmoo@2671
|
344 |
syn keyword cFunction GetEntProp SetEntProp GetEntPropFloat SetEntPropFloat |
|
fyrenmoo@2671
|
345 |
syn keyword cFunction GetEntPropEnt SetEntPropEnt GetEntPropVector SetEntPropVector |
|
fyrenmoo@2671
|
346 |
syn keyword cFunction GetEntPropString SetEntPropString GetEntDataArray SetEntDataArray |
|
fyrenmoo@2671
|
347 |
syn keyword cConstant Prop_Send Prop_Data FL_EDICT_CHANGED FL_EDICT_FREE |
|
fyrenmoo@2671
|
348 |
syn keyword cConstant FL_EDICT_FULL FL_EDICT_FULLCHECK FL_EDICT_ALWAYS FL_EDICT_DONTSEND |
|
fyrenmoo@2671
|
349 |
syn keyword cConstant FL_EDICT_PVSCHECK FL_EDICT_PENDING_DORMANT_CHECK FL_EDICT_DIRTY_PVS_INFORMATION FL_FULL_EDICT_CHANGED |
|
fyrenmoo@2671
|
350 |
syn keyword cConstant PropField_Unsupported PropField_Integer PropField_Float PropField_Entity |
|
fyrenmoo@2671
|
351 |
syn keyword cConstant PropField_Vector PropField_String PropField_String_T |
|
fyrenmoo@2671
|
352 |
syn keyword cTag PropType PropFieldType |
|
fyrenmoo@2671
|
353 |
|
|
fyrenmoo@2671
|
354 |
" entity_prop_stocks.inc |
|
fyrenmoo@2671
|
355 |
syn keyword cFunction GetEntityFlags GetEntityMoveType SetEntityMoveType GetEntityRenderMode |
|
fyrenmoo@2671
|
356 |
syn keyword cFunction SetEntityRenderMode GetEntityRenderFx SetEntityRenderFx SetEntityRenderColor |
|
fyrenmoo@2671
|
357 |
syn keyword cFunction GetEntityGravity SetEntityGravity SetEntityHealth GetClientButtons |
|
fyrenmoo@2671
|
358 |
syn keyword cConstant MOVETYPE_NONE MOVETYPE_ISOMETRIC MOVETYPE_WALK MOVETYPE_STEP |
|
fyrenmoo@2671
|
359 |
syn keyword cConstant MOVETYPE_FLY MOVETYPE_FLYGRAVITY MOVETYPE_VPHYSICS MOVETYPE_PUSH |
|
fyrenmoo@2671
|
360 |
syn keyword cConstant MOVETYPE_NOCLIP MOVETYPE_LADDER MOVETYPE_OBSERVER MOVETYPE_CUSTOM |
|
fyrenmoo@2671
|
361 |
syn keyword cConstant RENDER_NORMAL RENDER_TRANSCOLOR RENDER_TRANSTEXTURE RENDER_GLOW |
|
fyrenmoo@2671
|
362 |
syn keyword cConstant RENDER_TRANSALPHA RENDER_TRANSADD RENDER_ENVIRONMENTAL RENDER_TRANSADDFRAMEBLEND |
|
fyrenmoo@2671
|
363 |
syn keyword cConstant RENDER_TRANSALPHAADD RENDER_WORLDGLOW RENDER_NONE RENDERFX_NONE |
|
fyrenmoo@2671
|
364 |
syn keyword cConstant RENDERFX_PULSE_SLOW RENDERFX_PULSE_FAST RENDERFX_PULSE_SLOW_WIDE RENDERFX_PULSE_FAST_WIDE |
|
fyrenmoo@2671
|
365 |
syn keyword cConstant RENDERFX_FADE_SLOW RENDERFX_FADE_FAST RENDERFX_SOLID_SLOW RENDERFX_SOLID_FAST |
|
fyrenmoo@2671
|
366 |
syn keyword cConstant RENDERFX_STROBE_SLOW RENDERFX_STROBE_FAST RENDERFX_STROBE_FASTER RENDERFX_FLICKER_SLOW |
|
fyrenmoo@2671
|
367 |
syn keyword cConstant RENDERFX_FLICKER_FAST RENDERFX_NO_DISSIPATION RENDERFX_DISTORT RENDERFX_HOLOGRAM |
|
fyrenmoo@2671
|
368 |
syn keyword cConstant RENDERFX_EXPLODE RENDERFX_GLOWSHELL RENDERFX_CLAMP_MIN_SCALE RENDERFX_ENV_RAIN |
|
fyrenmoo@2671
|
369 |
syn keyword cConstant RENDERFX_ENV_SNOW RENDERFX_SPOTLIGHT RENDERFX_RAGDOLL RENDERFX_PULSE_FAST_WIDER |
|
fyrenmoo@2671
|
370 |
syn keyword cConstant RENDERFX_MAX IN_ATTACK IN_JUMP IN_DUCK |
|
fyrenmoo@2671
|
371 |
syn keyword cConstant IN_FORWARD IN_BACK IN_USE IN_CANCEL |
|
fyrenmoo@2671
|
372 |
syn keyword cConstant IN_LEFT IN_RIGHT IN_MOVELEFT IN_MOVERIGHT |
|
fyrenmoo@2671
|
373 |
syn keyword cConstant IN_ATTACK2 IN_RUN IN_RELOAD IN_ALT1 |
|
fyrenmoo@2671
|
374 |
syn keyword cConstant IN_ALT2 IN_SCORE IN_SPEED IN_WALK |
|
fyrenmoo@2671
|
375 |
syn keyword cConstant IN_ZOOM IN_WEAPON1 IN_WEAPON2 IN_BULLRUSH |
|
fyrenmoo@2671
|
376 |
syn keyword cConstant IN_GRENADE1 IN_GRENADE2 FL_ONGROUND FL_DUCKING |
|
fyrenmoo@2671
|
377 |
syn keyword cConstant FL_WATERJUMP FL_ONTRAIN FL_INRAIN FL_FROZEN |
|
fyrenmoo@2671
|
378 |
syn keyword cConstant FL_ATCONTROLS FL_CLIENT FL_FAKECLIENT PLAYER_FLAG_BITS |
|
fyrenmoo@2671
|
379 |
syn keyword cConstant FL_INWATER FL_FLY FL_SWIM FL_CONVEYOR |
|
fyrenmoo@2671
|
380 |
syn keyword cConstant FL_NPC FL_GODMODE FL_NOTARGET FL_AIMTARGET |
|
fyrenmoo@2671
|
381 |
syn keyword cConstant FL_PARTIALGROUND FL_STATICPROP FL_GRAPHED FL_GRENADE |
|
fyrenmoo@2671
|
382 |
syn keyword cConstant FL_STEPMOVEMENT FL_DONTTOUCH FL_BASEVELOCITY FL_WORLDBRUSH |
|
fyrenmoo@2671
|
383 |
syn keyword cConstant FL_OBJECT FL_KILLME FL_ONFIRE FL_DISSOLVING |
|
fyrenmoo@2671
|
384 |
syn keyword cConstant FL_TRANSRAGDOLL FL_UNBLOCKABLE_BY_PLAYER |
|
fyrenmoo@2671
|
385 |
syn keyword cTag MoveType RenderMode RenderFx |
|
fyrenmoo@2671
|
386 |
|
|
fyrenmoo@2671
|
387 |
" events.inc |
|
fyrenmoo@2671
|
388 |
syn keyword cFunction HookEvent HookEventEx UnhookEvent CreateEvent |
|
fyrenmoo@2671
|
389 |
syn keyword cFunction FireEvent CancelCreatedEvent GetEventBool SetEventBool |
|
fyrenmoo@2671
|
390 |
syn keyword cFunction GetEventInt SetEventInt GetEventFloat SetEventFloat |
|
fyrenmoo@2671
|
391 |
syn keyword cFunction GetEventString SetEventString GetEventName |
|
fyrenmoo@2671
|
392 |
syn keyword cConstant EventHookMode_Pre EventHookMode_Post EventHookMode_PostNoCopy |
|
fyrenmoo@2671
|
393 |
syn keyword cTag EventHookMode EventHook |
|
fyrenmoo@2671
|
394 |
|
|
fyrenmoo@2671
|
395 |
" files.inc |
|
fyrenmoo@2671
|
396 |
syn keyword cFunction BuildPath OpenDirectory ReadDirEntry OpenFile |
|
fyrenmoo@2671
|
397 |
syn keyword cFunction DeleteFile ReadFileLine ReadFile ReadFileString |
|
fyrenmoo@2671
|
398 |
syn keyword cFunction WriteFile WriteFileString WriteFileLine ReadFileCell |
|
fyrenmoo@2671
|
399 |
syn keyword cFunction WriteFileCell IsEndOfFile FileSeek FilePosition |
|
fyrenmoo@2671
|
400 |
syn keyword cFunction FileExists RenameFile DirExists FileSize |
|
fyrenmoo@2671
|
401 |
syn keyword cFunction FlushFile RemoveDir CreateDirectory GetFileTime |
|
fyrenmoo@2671
|
402 |
syn keyword cFunction LogToOpenFile LogToOpenFileEx |
|
fyrenmoo@2671
|
403 |
syn keyword cConstant FileType_Unknown FileType_Directory FileType_File FileTime_LastAccess |
|
fyrenmoo@2671
|
404 |
syn keyword cConstant FileTime_Created FileTime_LastChange PLATFORM_MAX_PATH SEEK_SET |
|
fyrenmoo@2671
|
405 |
syn keyword cConstant SEEK_CUR SEEK_END Path_SM FPERM_U_READ |
|
fyrenmoo@2671
|
406 |
syn keyword cConstant FPERM_U_WRITE FPERM_U_EXEC FPERM_G_READ FPERM_G_WRITE |
|
fyrenmoo@2671
|
407 |
syn keyword cConstant FPERM_G_EXEC FPERM_O_READ FPERM_O_WRITE FPERM_O_EXEC |
|
fyrenmoo@2671
|
408 |
syn keyword cTag FileType FileTimeMode PathType |
|
fyrenmoo@2671
|
409 |
|
|
fyrenmoo@2671
|
410 |
" float.inc |
|
fyrenmoo@2671
|
411 |
syn keyword cFunction float FloatMul FloatDiv FloatAdd |
|
fyrenmoo@2671
|
412 |
syn keyword cFunction FloatSub FloatFraction RoundToZero RoundToCeil |
|
fyrenmoo@2671
|
413 |
syn keyword cFunction RoundToFloor RoundToNearest FloatCompare SquareRoot |
|
fyrenmoo@2671
|
414 |
syn keyword cFunction Pow Exponential Logarithm Sine |
|
fyrenmoo@2671
|
415 |
syn keyword cFunction Cosine Tangent FloatAbs ArcTangent |
|
fyrenmoo@2671
|
416 |
syn keyword cFunction ArcCosine ArcSine ArcTangent2 RoundFloat |
|
fyrenmoo@2671
|
417 |
syn keyword cFunction DegToRad RadToDeg |
|
fyrenmoo@2671
|
418 |
syn keyword cConstant FLOAT_PI |
|
fyrenmoo@2671
|
419 |
|
|
fyrenmoo@2671
|
420 |
" functions.inc |
|
fyrenmoo@2671
|
421 |
syn keyword cFunction GetFunctionByName CreateGlobalForward CreateForward GetForwardFunctionCount |
|
fyrenmoo@2671
|
422 |
syn keyword cFunction AddToForward RemoveFromForward RemoveAllFromForward Call_StartForward |
|
fyrenmoo@2671
|
423 |
syn keyword cFunction Call_StartFunction Call_PushCell Call_PushCellRef Call_PushFloat |
|
fyrenmoo@2671
|
424 |
syn keyword cFunction Call_PushFloatRef Call_PushArray Call_PushArrayEx Call_PushString |
|
fyrenmoo@2671
|
425 |
syn keyword cFunction Call_PushStringEx Call_Finish Call_Cancel CreateNative |
|
fyrenmoo@2671
|
426 |
syn keyword cFunction ThrowNativeError GetNativeStringLength GetNativeString SetNativeString |
|
fyrenmoo@2671
|
427 |
syn keyword cFunction GetNativeCell GetNativeCellRef SetNativeCellRef GetNativeArray |
|
fyrenmoo@2671
|
428 |
syn keyword cFunction SetNativeArray FormatNativeString |
|
fyrenmoo@2671
|
429 |
syn keyword cConstant SP_PARAMFLAG_BYREF Param_Any Param_Cell Param_Float |
|
fyrenmoo@2671
|
430 |
syn keyword cConstant Param_String Param_Array Param_VarArgs Param_CellByRef |
|
fyrenmoo@2671
|
431 |
syn keyword cConstant Param_FloatByRef ET_Ignore ET_Single ET_Event |
|
fyrenmoo@2671
|
432 |
syn keyword cConstant ET_Hook SM_PARAM_COPYBACK SM_PARAM_STRING_UTF8 SM_PARAM_STRING_COPY |
|
fyrenmoo@2671
|
433 |
syn keyword cConstant SM_PARAM_STRING_BINARY SP_ERROR_NONE SP_ERROR_FILE_FORMAT SP_ERROR_DECOMPRESSOR |
|
fyrenmoo@2671
|
434 |
syn keyword cConstant SP_ERROR_HEAPLOW SP_ERROR_PARAM SP_ERROR_INVALID_ADDRESS SP_ERROR_NOT_FOUND |
|
fyrenmoo@2671
|
435 |
syn keyword cConstant SP_ERROR_INDEX SP_ERROR_STACKLOW SP_ERROR_NOTDEBUGGING SP_ERROR_INVALID_INSTRUCTION |
|
fyrenmoo@2671
|
436 |
syn keyword cConstant SP_ERROR_MEMACCESS SP_ERROR_STACKMIN SP_ERROR_HEAPMIN SP_ERROR_DIVIDE_BY_ZERO |
|
fyrenmoo@2671
|
437 |
syn keyword cConstant SP_ERROR_ARRAY_BOUNDS SP_ERROR_INSTRUCTION_PARAM SP_ERROR_STACKLEAK SP_ERROR_HEAPLEAK |
|
fyrenmoo@2671
|
438 |
syn keyword cConstant SP_ERROR_ARRAY_TOO_BIG SP_ERROR_TRACKER_BOUNDS SP_ERROR_INVALID_NATIVE SP_ERROR_PARAMS_MAX |
|
fyrenmoo@2671
|
439 |
syn keyword cConstant SP_ERROR_NATIVE SP_ERROR_NOT_RUNNABLE SP_ERROR_ABORTED |
|
fyrenmoo@2671
|
440 |
syn keyword cTag ParamType ExecType NativeCall |
|
fyrenmoo@2671
|
441 |
|
|
fyrenmoo@2671
|
442 |
" geoip.inc |
|
fyrenmoo@2671
|
443 |
syn keyword cFunction GeoipCode2 GeoipCode3 GeoipCountry |
|
fyrenmoo@2671
|
444 |
|
|
fyrenmoo@2671
|
445 |
" halflife.inc |
|
fyrenmoo@2671
|
446 |
syn keyword cFunction LogToGame SetRandomSeed GetRandomFloat GetRandomInt |
|
fyrenmoo@2671
|
447 |
syn keyword cFunction IsMapValid IsDedicatedServer GetEngineTime GetGameTime |
|
fyrenmoo@2671
|
448 |
syn keyword cFunction GetGameDescription GetGameFolderName GetCurrentMap PrecacheModel |
|
fyrenmoo@2671
|
449 |
syn keyword cFunction PrecacheSentenceFile PrecacheDecal PrecacheGeneric IsModelPrecached |
|
fyrenmoo@2671
|
450 |
syn keyword cFunction IsDecalPrecached IsGenericPrecached PrecacheSound IsSoundPrecached |
|
fyrenmoo@2671
|
451 |
syn keyword cFunction CreateDialog GuessSDKVersion PrintToChat PrintToChatAll |
|
fyrenmoo@2671
|
452 |
syn keyword cFunction PrintCenterText PrintCenterTextAll PrintHintText PrintHintTextToAll |
|
fyrenmoo@2671
|
453 |
syn keyword cFunction ShowVGUIPanel CreateHudSynchronizer SetHudTextParams SetHudTextParamsEx |
|
fyrenmoo@2671
|
454 |
syn keyword cFunction ShowSyncHudText ClearSyncHud ShowHudText ShowMOTDPanel |
|
fyrenmoo@2671
|
455 |
syn keyword cFunction DisplayAskConnectBox |
|
fyrenmoo@2671
|
456 |
syn keyword cConstant SOURCE_SDK_UNKNOWN SOURCE_SDK_ORIGINAL SOURCE_SDK_DARKMESSIAH SOURCE_SDK_EPISODE1 |
|
fyrenmoo@2671
|
457 |
syn keyword cConstant SOURCE_SDK_EPISODE2 SOURCE_SDK_LEFT4DEAD MOTDPANEL_TYPE_TEXT MOTDPANEL_TYPE_INDEX |
|
fyrenmoo@2671
|
458 |
syn keyword cConstant MOTDPANEL_TYPE_URL MOTDPANEL_TYPE_FILE DialogType_Msg DialogType_Menu |
|
fyrenmoo@2671
|
459 |
syn keyword cConstant DialogType_Text DialogType_Entry DialogType_AskConnect |
|
fyrenmoo@2671
|
460 |
syn keyword cTag DialogType |
|
fyrenmoo@2671
|
461 |
|
|
fyrenmoo@2671
|
462 |
" handles.inc |
|
fyrenmoo@2671
|
463 |
syn keyword cFunction CloseHandle CloneHandle IsValidHandle |
|
fyrenmoo@2671
|
464 |
syn keyword cConstant INVALID_HANDLE |
|
fyrenmoo@2671
|
465 |
syn keyword cTag Handle |
|
fyrenmoo@2671
|
466 |
|
|
fyrenmoo@2671
|
467 |
" helpers.inc |
|
fyrenmoo@2671
|
468 |
syn keyword cFunction FormatUserLogText FindPluginByFile SearchForClients FindTarget |
|
fyrenmoo@2671
|
469 |
syn keyword cFunction LoadMaps |
|
fyrenmoo@2671
|
470 |
|
|
fyrenmoo@2671
|
471 |
" keyvalues.inc |
|
fyrenmoo@2671
|
472 |
syn keyword cFunction CreateKeyValues KvSetString KvSetNum KvSetUInt64 |
|
fyrenmoo@2671
|
473 |
syn keyword cFunction KvSetFloat KvSetColor KvSetVector KvGetString |
|
fyrenmoo@2671
|
474 |
syn keyword cFunction KvGetNum KvGetFloat KvGetColor KvGetUInt64 |
|
fyrenmoo@2671
|
475 |
syn keyword cFunction KvGetVector KvJumpToKey KvJumpToKeySymbol KvGotoFirstSubKey |
|
fyrenmoo@2671
|
476 |
syn keyword cFunction KvGotoNextKey KvSavePosition KvDeleteKey KvDeleteThis |
|
fyrenmoo@2671
|
477 |
syn keyword cFunction KvGoBack KvRewind KvGetSectionName KvSetSectionName |
|
fyrenmoo@2671
|
478 |
syn keyword cFunction KvGetDataType KeyValuesToFile FileToKeyValues KvSetEscapeSequences |
|
fyrenmoo@2671
|
479 |
syn keyword cFunction KvNodesInStack KvCopySubkeys KvFindKeyById KvGetNameSymbol |
|
fyrenmoo@2671
|
480 |
syn keyword cFunction KvGetSectionSymbol |
|
fyrenmoo@2671
|
481 |
syn keyword cConstant KvData_None KvData_String KvData_Int KvData_Float |
|
fyrenmoo@2671
|
482 |
syn keyword cConstant KvData_Ptr KvData_WString KvData_Color KvData_UInt64 |
|
fyrenmoo@2671
|
483 |
syn keyword cConstant KvData_NUMTYPES |
|
fyrenmoo@2671
|
484 |
syn keyword cTag KvDataTypes |
|
fyrenmoo@2671
|
485 |
|
|
fyrenmoo@2671
|
486 |
" lang.inc |
|
fyrenmoo@2671
|
487 |
syn keyword cFunction LoadTranslations SetGlobalTransTarget GetClientLanguage GetServerLanguage |
|
fyrenmoo@2671
|
488 |
syn keyword cFunction GetLanguageCount GetLanguageInfo |
|
fyrenmoo@2671
|
489 |
syn keyword cConstant LANG_SERVER |
|
fyrenmoo@2671
|
490 |
|
|
fyrenmoo@2671
|
491 |
" logging.inc |
|
fyrenmoo@2671
|
492 |
syn keyword cFunction LogMessage LogMessageEx LogToFile LogToFileEx |
|
fyrenmoo@2671
|
493 |
syn keyword cFunction LogAction LogError AddGameLogHook RemoveGameLogHook |
|
fyrenmoo@2671
|
494 |
syn keyword cTag GameLogHook |
|
fyrenmoo@2671
|
495 |
syn keyword cForward OnLogAction |
|
fyrenmoo@2671
|
496 |
|
|
fyrenmoo@2671
|
497 |
" mapchooser.inc |
|
fyrenmoo@2671
|
498 |
syn keyword cFunction NominateMap GetExcludeMapList CanMapChooserStartVote InitiateMapChooserVote |
|
fyrenmoo@2671
|
499 |
syn keyword cFunction HasEndOfMapVoteFinished EndOfMapVoteEnabled |
|
fyrenmoo@2671
|
500 |
syn keyword cConstant Nominate_Added Nominate_Replaced Nominate_AlreadyInVote Nominate_InvalidMap |
|
fyrenmoo@2671
|
501 |
syn keyword cConstant Nominate_VoteFull MapChange_Instant MapChange_RoundEnd MapChange_MapEnd |
|
fyrenmoo@2671
|
502 |
syn keyword cTag NominateResult MapChange |
|
fyrenmoo@2671
|
503 |
syn keyword cForward OnNominationRemoved |
|
fyrenmoo@2671
|
504 |
|
|
fyrenmoo@2671
|
505 |
" menus.inc |
|
fyrenmoo@2671
|
506 |
syn keyword cFunction CreateMenu DisplayMenu DisplayMenuAtItem AddMenuItem |
|
fyrenmoo@2671
|
507 |
syn keyword cFunction InsertMenuItem RemoveMenuItem RemoveAllMenuItems GetMenuItem |
|
fyrenmoo@2671
|
508 |
syn keyword cFunction GetMenuSelectionPosition GetMenuItemCount SetMenuPagination GetMenuPagination |
|
fyrenmoo@2671
|
509 |
syn keyword cFunction GetMenuStyle SetMenuTitle GetMenuTitle CreatePanelFromMenu |
|
fyrenmoo@2671
|
510 |
syn keyword cFunction GetMenuExitButton SetMenuExitButton GetMenuExitBackButton SetMenuExitBackButton |
|
fyrenmoo@2671
|
511 |
syn keyword cFunction CancelMenu GetMenuOptionFlags SetMenuOptionFlags IsVoteInProgress |
|
fyrenmoo@2671
|
512 |
syn keyword cFunction CancelVote VoteMenu VoteMenuToAll SetVoteResultCallback |
|
fyrenmoo@2671
|
513 |
syn keyword cFunction CheckVoteDelay IsClientInVotePool RedrawClientVoteMenu GetMenuStyleHandle |
|
fyrenmoo@2671
|
514 |
syn keyword cFunction CreatePanel CreateMenuEx GetClientMenu CancelClientMenu |
|
fyrenmoo@2671
|
515 |
syn keyword cFunction GetMaxPageItems GetPanelStyle SetPanelTitle DrawPanelItem |
|
fyrenmoo@2671
|
516 |
syn keyword cFunction DrawPanelText CanPanelDrawFlags SetPanelKeys SendPanelToClient |
|
fyrenmoo@2671
|
517 |
syn keyword cFunction GetPanelTextRemaining GetPanelCurrentKey SetPanelCurrentKey RedrawMenuItem |
|
fyrenmoo@2671
|
518 |
syn keyword cFunction InternalShowMenu GetMenuVoteInfo IsNewVoteAllowed |
|
fyrenmoo@2671
|
519 |
syn keyword cConstant MenuStyle_Default MenuStyle_Valve MenuStyle_Radio MenuAction_Start |
|
fyrenmoo@2671
|
520 |
syn keyword cConstant MenuAction_Display MenuAction_Select MenuAction_Cancel MenuAction_End |
|
fyrenmoo@2671
|
521 |
syn keyword cConstant MenuAction_VoteEnd MenuAction_VoteStart MenuAction_VoteCancel MenuAction_DrawItem |
|
fyrenmoo@2671
|
522 |
syn keyword cConstant MenuAction_DisplayItem MENU_ACTIONS_DEFAULT MENU_ACTIONS_ALL MENU_NO_PAGINATION |
|
fyrenmoo@2671
|
523 |
syn keyword cConstant MENU_TIME_FOREVER ITEMDRAW_DEFAULT ITEMDRAW_DISABLED ITEMDRAW_RAWLINE |
|
fyrenmoo@2671
|
524 |
syn keyword cConstant ITEMDRAW_NOTEXT ITEMDRAW_SPACER ITEMDRAW_IGNORE ITEMDRAW_CONTROL |
|
fyrenmoo@2671
|
525 |
syn keyword cConstant MENUFLAG_BUTTON_EXIT MENUFLAG_BUTTON_EXITBACK MENUFLAG_NO_SOUND VOTEINFO_CLIENT_INDEX |
|
fyrenmoo@2671
|
526 |
syn keyword cConstant VOTEINFO_CLIENT_ITEM VOTEINFO_ITEM_INDEX VOTEINFO_ITEM_VOTES MenuSource_None |
|
fyrenmoo@2671
|
527 |
syn keyword cConstant MenuSource_External MenuSource_Normal MenuSource_RawPanel |
|
fyrenmoo@2671
|
528 |
syn keyword cTag MenuStyle MenuAction MenuSource MenuHandler |
|
fyrenmoo@2671
|
529 |
syn keyword cTag VoteHandler |
|
fyrenmoo@2671
|
530 |
|
|
fyrenmoo@2671
|
531 |
" nextmap.inc |
|
fyrenmoo@2671
|
532 |
syn keyword cFunction SetNextMap GetNextMap ForceChangeLevel GetMapHistorySize |
|
fyrenmoo@2671
|
533 |
syn keyword cFunction GetMapHistory |
|
fyrenmoo@2671
|
534 |
|
|
fyrenmoo@2671
|
535 |
" profiler.inc |
|
fyrenmoo@2671
|
536 |
syn keyword cFunction CreateProfiler StartProfiling StopProfiling GetProfilerTime |
|
fyrenmoo@2671
|
537 |
|
|
fyrenmoo@2671
|
538 |
" regex.inc |
|
fyrenmoo@2671
|
539 |
syn keyword cFunction CompileRegex MatchRegex GetRegexSubString SimpleRegexMatch |
|
fyrenmoo@2671
|
540 |
syn keyword cConstant PCRE_CASELESS PCRE_MULTILINE PCRE_DOTALL PCRE_EXTENDED |
|
fyrenmoo@2671
|
541 |
syn keyword cConstant PCRE_UNGREEDY PCRE_UTF8 PCRE_NO_UTF8_CHECK REGEX_ERROR_NONE |
|
fyrenmoo@2671
|
542 |
syn keyword cConstant REGEX_ERROR_NOMATCH REGEX_ERROR_NULL REGEX_ERROR_BADOPTION REGEX_ERROR_BADMAGIC |
|
fyrenmoo@2671
|
543 |
syn keyword cConstant REGEX_ERROR_UNKNOWN_OPCODE REGEX_ERROR_NOMEMORY REGEX_ERROR_NOSUBSTRING REGEX_ERROR_MATCHLIMIT |
|
fyrenmoo@2671
|
544 |
syn keyword cConstant REGEX_ERROR_CALLOUT REGEX_ERROR_BADUTF8 REGEX_ERROR_BADUTF8_OFFSET REGEX_ERROR_PARTIAL |
|
fyrenmoo@2671
|
545 |
syn keyword cConstant REGEX_ERROR_BADPARTIAL REGEX_ERROR_INTERNAL REGEX_ERROR_BADCOUNT REGEX_ERROR_DFA_UITEM |
|
fyrenmoo@2671
|
546 |
syn keyword cConstant REGEX_ERROR_DFA_UCOND REGEX_ERROR_DFA_UMLIMIT REGEX_ERROR_DFA_WSSIZE REGEX_ERROR_DFA_RECURSE |
|
fyrenmoo@2671
|
547 |
syn keyword cConstant REGEX_ERROR_RECURSIONLIMIT REGEX_ERROR_NULLWSLIMIT REGEX_ERROR_BADNEWLINE |
|
fyrenmoo@2671
|
548 |
syn keyword cTag RegexError |
|
fyrenmoo@2671
|
549 |
|
|
fyrenmoo@2671
|
550 |
" sdktools.inc |
|
fyrenmoo@2671
|
551 |
syn keyword cFunction StartPrepSDKCall PrepSDKCall_SetVirtual PrepSDKCall_SetSignature PrepSDKCall_SetFromConf |
|
fyrenmoo@2671
|
552 |
syn keyword cFunction PrepSDKCall_SetReturnInfo PrepSDKCall_AddParameter EndPrepSDKCall SDKCall |
|
fyrenmoo@2671
|
553 |
syn keyword cConstant SDKCall_Static SDKCall_Entity SDKCall_Player SDKCall_GameRules |
|
fyrenmoo@2671
|
554 |
syn keyword cConstant SDKCall_EntityList SDKLibrary_Server SDKLibrary_Engine SDKConf_Virtual |
|
fyrenmoo@2671
|
555 |
syn keyword cConstant SDKConf_Signature SDKType_CBaseEntity SDKType_CBasePlayer SDKType_Vector |
|
fyrenmoo@2671
|
556 |
syn keyword cConstant SDKType_QAngle SDKType_PlainOldData SDKType_Float SDKType_Edict |
|
fyrenmoo@2671
|
557 |
syn keyword cConstant SDKType_String SDKType_Bool SDKPass_Pointer SDKPass_Plain |
|
fyrenmoo@2671
|
558 |
syn keyword cConstant SDKPass_ByValue SDKPass_ByRef VDECODE_FLAG_ALLOWNULL VDECODE_FLAG_ALLOWNOTINGAME |
|
fyrenmoo@2671
|
559 |
syn keyword cConstant VDECODE_FLAG_ALLOWWORLD VDECODE_FLAG_BYREF VENCODE_FLAG_COPYBACK |
|
fyrenmoo@2671
|
560 |
syn keyword cTag SDKCallType SDKLibrary SDKFuncConfSource SDKType |
|
fyrenmoo@2671
|
561 |
syn keyword cTag SDKPassMethod |
|
fyrenmoo@2671
|
562 |
|
|
fyrenmoo@2671
|
563 |
" sdktools_engine.inc |
|
fyrenmoo@2671
|
564 |
syn keyword cFunction SetClientViewEntity SetLightStyle GetClientEyePosition |
|
fyrenmoo@2671
|
565 |
syn keyword cConstant MAX_LIGHTSTYLES |
|
fyrenmoo@2671
|
566 |
|
|
fyrenmoo@2671
|
567 |
" sdktools_entinput.inc |
|
fyrenmoo@2671
|
568 |
syn keyword cFunction AcceptEntityInput SetVariantBool SetVariantString SetVariantInt |
|
fyrenmoo@2671
|
569 |
syn keyword cFunction SetVariantFloat SetVariantVector3D SetVariantPosVector3D SetVariantColor |
|
fyrenmoo@2671
|
570 |
syn keyword cFunction SetVariantEntity |
|
fyrenmoo@2671
|
571 |
|
|
fyrenmoo@2671
|
572 |
" sdktools_entoutput.inc |
|
fyrenmoo@2671
|
573 |
syn keyword cFunction HookEntityOutput UnhookEntityOutput HookSingleEntityOutput UnhookSingleEntityOutput |
|
fyrenmoo@2671
|
574 |
syn keyword cTag EntityOutput |
|
fyrenmoo@2671
|
575 |
|
|
fyrenmoo@2671
|
576 |
" sdktools_functions.inc |
|
fyrenmoo@2671
|
577 |
syn keyword cFunction RemovePlayerItem GivePlayerItem GetPlayerWeaponSlot IgniteEntity |
|
fyrenmoo@2671
|
578 |
syn keyword cFunction ExtinguishEntity TeleportEntity ForcePlayerSuicide SlapPlayer |
|
fyrenmoo@2671
|
579 |
syn keyword cFunction FindEntityByClassname GetClientEyeAngles CreateEntityByName DispatchSpawn |
|
fyrenmoo@2671
|
580 |
syn keyword cFunction DispatchKeyValue DispatchKeyValueFloat DispatchKeyValueVector GetClientAimTarget |
|
fyrenmoo@2671
|
581 |
syn keyword cFunction GetTeamCount GetTeamName GetTeamScore SetTeamScore |
|
fyrenmoo@2671
|
582 |
syn keyword cFunction GetTeamClientCount SetEntityModel GetPlayerDecalFile GetServerNetStats |
|
fyrenmoo@2671
|
583 |
syn keyword cFunction EquipPlayerWeapon ActivateEntity SetClientInfo |
|
fyrenmoo@2671
|
584 |
|
|
fyrenmoo@2671
|
585 |
" sdktools_sound.inc |
|
fyrenmoo@2671
|
586 |
syn keyword cFunction PrefetchSound GetSoundDuration EmitAmbientSound FadeClientVolume |
|
fyrenmoo@2671
|
587 |
syn keyword cFunction StopSound EmitSound EmitSentence AddAmbientSoundHook |
|
fyrenmoo@2671
|
588 |
syn keyword cFunction AddNormalSoundHook RemoveAmbientSoundHook RemoveNormalSoundHook EmitSoundToClient |
|
fyrenmoo@2671
|
589 |
syn keyword cFunction EmitSoundToAll ATTN_TO_SNDLEVEL |
|
fyrenmoo@2671
|
590 |
syn keyword cConstant SOUND_FROM_PLAYER SOUND_FROM_LOCAL_PLAYER SOUND_FROM_WORLD SNDVOL_NORMAL |
|
fyrenmoo@2671
|
591 |
syn keyword cConstant SNDPITCH_NORMAL SNDPITCH_LOW SNDPITCH_HIGH SNDATTN_NONE |
|
fyrenmoo@2671
|
592 |
syn keyword cConstant SNDATTN_NORMAL SNDATTN_STATIC SNDATTN_RICOCHET SNDATTN_IDLE |
|
fyrenmoo@2671
|
593 |
syn keyword cTag AmbientSHook NormalSHook |
|
fyrenmoo@2671
|
594 |
|
|
fyrenmoo@2671
|
595 |
" sdktools_stocks.inc |
|
fyrenmoo@2671
|
596 |
syn keyword cFunction FindTeamByName |
|
fyrenmoo@2671
|
597 |
|
|
fyrenmoo@2671
|
598 |
" sdktools_stringtables.inc |
|
fyrenmoo@2671
|
599 |
syn keyword cFunction FindStringTable GetNumStringTables GetStringTableNumStrings GetStringTableMaxStrings |
|
fyrenmoo@2671
|
600 |
syn keyword cFunction GetStringTableName FindStringIndex ReadStringTable GetStringTableDataLength |
|
fyrenmoo@2671
|
601 |
syn keyword cFunction GetStringTableData SetStringTableData AddToStringTable LockStringTables |
|
fyrenmoo@2671
|
602 |
syn keyword cFunction AddFileToDownloadsTable |
|
fyrenmoo@2671
|
603 |
syn keyword cConstant INVALID_STRING_TABLE INVALID_STRING_INDEX |
|
fyrenmoo@2671
|
604 |
|
|
fyrenmoo@2671
|
605 |
" sdktools_tempents.inc |
|
fyrenmoo@2671
|
606 |
syn keyword cFunction AddTempEntHook RemoveTempEntHook TE_Start TE_IsValidProp |
|
fyrenmoo@2671
|
607 |
syn keyword cFunction TE_WriteNum TE_ReadNum TE_WriteFloat TE_ReadFloat |
|
fyrenmoo@2671
|
608 |
syn keyword cFunction TE_WriteVector TE_ReadVector TE_WriteAngles TE_WriteFloatArray |
|
fyrenmoo@2671
|
609 |
syn keyword cFunction TE_Send TE_WriteEncodedEnt TE_SendToAll TE_SendToClient |
|
fyrenmoo@2671
|
610 |
syn keyword cTag TEHook |
|
fyrenmoo@2671
|
611 |
|
|
fyrenmoo@2671
|
612 |
" sdktools_tempents_stocks.inc |
|
fyrenmoo@2671
|
613 |
syn keyword cFunction TE_SetupSparks TE_SetupSmoke TE_SetupDust TE_SetupMuzzleFlash |
|
fyrenmoo@2671
|
614 |
syn keyword cFunction TE_SetupMetalSparks TE_SetupEnergySplash TE_SetupArmorRicochet TE_SetupGlowSprite |
|
fyrenmoo@2671
|
615 |
syn keyword cFunction TE_SetupExplosion TE_SetupBloodSprite TE_SetupBeamRingPoint TE_SetupBeamPoints |
|
fyrenmoo@2671
|
616 |
syn keyword cFunction TE_SetupBeamLaser TE_SetupBeamRing TE_SetupBeamFollow |
|
fyrenmoo@2671
|
617 |
syn keyword cConstant TE_EXPLFLAG_NONE TE_EXPLFLAG_NOADDITIVE TE_EXPLFLAG_NODLIGHTS TE_EXPLFLAG_NOSOUND |
|
fyrenmoo@2671
|
618 |
syn keyword cConstant TE_EXPLFLAG_NOPARTICLES TE_EXPLFLAG_DRAWALPHA TE_EXPLFLAG_ROTATE TE_EXPLFLAG_NOFIREBALL |
|
fyrenmoo@2671
|
619 |
syn keyword cConstant TE_EXPLFLAG_NOFIREBALLSMOKE FBEAM_STARTENTITY FBEAM_ENDENTITY FBEAM_FADEIN |
|
fyrenmoo@2671
|
620 |
syn keyword cConstant FBEAM_FADEOUT FBEAM_SINENOISE FBEAM_SOLID FBEAM_SHADEIN |
|
fyrenmoo@2671
|
621 |
syn keyword cConstant FBEAM_SHADEOUT FBEAM_ONLYNOISEONCE FBEAM_NOTILE FBEAM_USE_HITBOXES |
|
fyrenmoo@2671
|
622 |
syn keyword cConstant FBEAM_STARTVISIBLE FBEAM_ENDVISIBLE FBEAM_ISACTIVE FBEAM_FOREVER |
|
fyrenmoo@2671
|
623 |
syn keyword cConstant FBEAM_HALOBEAM |
|
fyrenmoo@2671
|
624 |
|
|
fyrenmoo@2671
|
625 |
" sdktools_trace.inc |
|
fyrenmoo@2671
|
626 |
syn keyword cFunction TR_GetPointContents TR_GetPointContentsEnt TR_TraceRay TR_TraceHull |
|
fyrenmoo@2671
|
627 |
syn keyword cFunction TR_TraceRayFilter TR_TraceHullFilter TR_TraceRayEx TR_TraceHullEx |
|
fyrenmoo@2671
|
628 |
syn keyword cFunction TR_TraceRayFilterEx TR_TraceHullFilterEx TR_GetFraction TR_GetEndPosition |
|
fyrenmoo@2671
|
629 |
syn keyword cFunction TR_GetEntityIndex TR_DidHit TR_GetHitGroup TR_GetPlaneNormal |
|
fyrenmoo@2671
|
630 |
syn keyword cConstant CONTENTS_EMPTY CONTENTS_SOLID CONTENTS_WINDOW CONTENTS_AUX |
|
fyrenmoo@2671
|
631 |
syn keyword cConstant CONTENTS_GRATE CONTENTS_SLIME CONTENTS_WATER CONTENTS_MIST |
|
fyrenmoo@2671
|
632 |
syn keyword cConstant CONTENTS_OPAQUE LAST_VISIBLE_CONTENTS ALL_VISIBLE_CONTENTS CONTENTS_TESTFOGVOLUME |
|
fyrenmoo@2671
|
633 |
syn keyword cConstant CONTENTS_UNUSED5 CONTENTS_UNUSED6 CONTENTS_TEAM1 CONTENTS_TEAM2 |
|
fyrenmoo@2671
|
634 |
syn keyword cConstant CONTENTS_IGNORE_NODRAW_OPAQUE CONTENTS_MOVEABLE CONTENTS_AREAPORTAL CONTENTS_PLAYERCLIP |
|
fyrenmoo@2671
|
635 |
syn keyword cConstant CONTENTS_MONSTERCLIP CONTENTS_CURRENT_0 CONTENTS_CURRENT_90 CONTENTS_CURRENT_180 |
|
fyrenmoo@2671
|
636 |
syn keyword cConstant CONTENTS_CURRENT_270 CONTENTS_CURRENT_UP CONTENTS_CURRENT_DOWN CONTENTS_ORIGIN |
|
fyrenmoo@2671
|
637 |
syn keyword cConstant CONTENTS_MONSTER CONTENTS_DEBRIS CONTENTS_DETAIL CONTENTS_TRANSLUCENT |
|
fyrenmoo@2671
|
638 |
syn keyword cConstant CONTENTS_LADDER CONTENTS_HITBOX MASK_ALL MASK_SOLID |
|
fyrenmoo@2671
|
639 |
syn keyword cConstant MASK_PLAYERSOLID MASK_NPCSOLID MASK_WATER MASK_OPAQUE |
|
fyrenmoo@2671
|
640 |
syn keyword cConstant MASK_OPAQUE_AND_NPCS MASK_VISIBLE MASK_VISIBLE_AND_NPCS MASK_SHOT |
|
fyrenmoo@2671
|
641 |
syn keyword cConstant MASK_SHOT_HULL MASK_SHOT_PORTAL MASK_SOLID_BRUSHONLY MASK_PLAYERSOLID_BRUSHONLY |
|
fyrenmoo@2671
|
642 |
syn keyword cConstant MASK_NPCSOLID_BRUSHONLY MASK_NPCWORLDSTATIC MASK_SPLITAREAPORTAL RayType_EndPoint |
|
fyrenmoo@2671
|
643 |
syn keyword cConstant RayType_Infinite |
|
fyrenmoo@2671
|
644 |
syn keyword cTag RayType TraceEntityFilter |
|
fyrenmoo@2671
|
645 |
|
|
fyrenmoo@2671
|
646 |
" sdktools_voice.inc |
|
fyrenmoo@2671
|
647 |
syn keyword cFunction SetClientListeningFlags GetClientListeningFlags SetClientListening GetClientListening |
|
fyrenmoo@2671
|
648 |
syn keyword cConstant VOICE_NORMAL VOICE_MUTED VOICE_SPEAKALL VOICE_LISTENALL |
|
fyrenmoo@2671
|
649 |
syn keyword cConstant VOICE_TEAM VOICE_LISTENTEAM |
|
fyrenmoo@2671
|
650 |
|
|
fyrenmoo@2671
|
651 |
" sorting.inc |
|
fyrenmoo@2671
|
652 |
syn keyword cFunction SortIntegers SortFloats SortStrings SortCustom1D |
|
fyrenmoo@2671
|
653 |
syn keyword cFunction SortCustom2D SortADTArray SortADTArrayCustom |
|
fyrenmoo@2671
|
654 |
syn keyword cConstant Sort_Ascending Sort_Descending Sort_Random |
|
fyrenmoo@2671
|
655 |
syn keyword cTag SortOrder SortType SortFunc1D SortFunc2D |
|
fyrenmoo@2671
|
656 |
syn keyword cTag SortFuncADTArray |
|
fyrenmoo@2671
|
657 |
|
|
fyrenmoo@2671
|
658 |
" sourcemod.inc |
|
fyrenmoo@2671
|
659 |
syn keyword cFunction GetMyHandle GetPluginIterator MorePlugins ReadPlugin |
|
fyrenmoo@2671
|
660 |
syn keyword cFunction GetPluginStatus GetPluginFilename IsPluginDebugging GetPluginInfo |
|
fyrenmoo@2671
|
661 |
syn keyword cFunction FindPluginByNumber SetFailState ThrowError GetTime |
|
fyrenmoo@2671
|
662 |
syn keyword cFunction FormatTime LoadGameConfigFile GameConfGetOffset GameConfGetKeyValue |
|
fyrenmoo@2671
|
663 |
syn keyword cFunction GetSysTickCount AutoExecConfig MarkNativeAsOptional RegPluginLibrary |
|
fyrenmoo@2671
|
664 |
syn keyword cFunction LibraryExists GetExtensionFileStatus ReadMapList SetMapListCompatBind |
|
fyrenmoo@2671
|
665 |
syn keyword cConstant myinfo MAPLIST_FLAG_MAPSFOLDER MAPLIST_FLAG_CLEARARRAY MAPLIST_FLAG_NO_DEFAULT |
|
fyrenmoo@2671
|
666 |
syn keyword cTag Plugin |
|
fyrenmoo@2671
|
667 |
syn keyword cForward OnPluginStart AskPluginLoad OnPluginEnd OnPluginPauseChange |
|
fyrenmoo@2671
|
668 |
syn keyword cForward OnGameFrame OnMapStart OnMapEnd OnConfigsExecuted |
|
fyrenmoo@2671
|
669 |
syn keyword cForward OnAutoConfigsBuffered OnServerCfg OnAllPluginsLoaded OnLibraryAdded |
|
fyrenmoo@2671
|
670 |
syn keyword cForward OnLibraryRemoved OnClientFloodCheck OnClientFloodResult |
|
fyrenmoo@2671
|
671 |
|
|
fyrenmoo@2671
|
672 |
" string.inc |
|
fyrenmoo@2671
|
673 |
syn keyword cFunction strlen StrContains strcmp strncmp |
|
fyrenmoo@2671
|
674 |
syn keyword cFunction StrCompare StrEqual strcopy StrCopy |
|
fyrenmoo@2671
|
675 |
syn keyword cFunction Format FormatEx VFormat StringToInt |
|
fyrenmoo@2671
|
676 |
syn keyword cFunction StringToIntEx IntToString StringToFloat StringToFloatEx |
|
fyrenmoo@2671
|
677 |
syn keyword cFunction FloatToString BreakString StrBreak TrimString |
|
fyrenmoo@2671
|
678 |
syn keyword cFunction SplitString ReplaceString ReplaceStringEx GetCharBytes |
|
fyrenmoo@2671
|
679 |
syn keyword cFunction IsCharAlpha IsCharNumeric IsCharSpace IsCharMB |
|
fyrenmoo@2671
|
680 |
syn keyword cFunction IsCharUpper IsCharLower StripQuotes CharToUpper |
|
fyrenmoo@2671
|
681 |
syn keyword cFunction CharToLower FindCharInString StrCat ExplodeString |
|
fyrenmoo@2671
|
682 |
syn keyword cFunction ImplodeStrings |
|
fyrenmoo@2671
|
683 |
|
|
fyrenmoo@2671
|
684 |
" textparse.inc |
|
fyrenmoo@2671
|
685 |
syn keyword cFunction SMC_CreateParser SMC_ParseFile SMC_GetErrorString SMC_SetParseStart |
|
fyrenmoo@2671
|
686 |
syn keyword cFunction SMC_SetParseEnd SMC_SetReaders SMC_SetRawLine |
|
fyrenmoo@2671
|
687 |
syn keyword cConstant SMCParse_Continue SMCParse_Halt SMCParse_HaltFail SMCError_Okay |
|
fyrenmoo@2671
|
688 |
syn keyword cConstant SMCError_StreamOpen SMCError_StreamError SMCError_Custom SMCError_InvalidSection1 |
|
fyrenmoo@2671
|
689 |
syn keyword cConstant SMCError_InvalidSection2 SMCError_InvalidSection3 SMCError_InvalidSection4 SMCError_InvalidSection5 |
|
fyrenmoo@2671
|
690 |
syn keyword cConstant SMCError_InvalidTokens SMCError_TokenOverflow SMCError_InvalidProperty1 |
|
fyrenmoo@2671
|
691 |
syn keyword cTag SMCResult SMCError SMC_ParseStart SMC_ParseEnd |
|
fyrenmoo@2671
|
692 |
syn keyword cTag SMC_NewSection SMC_KeyValue SMC_EndSection SMC_RawLine |
|
fyrenmoo@2671
|
693 |
|
|
fyrenmoo@2671
|
694 |
" tf2.inc |
|
fyrenmoo@2671
|
695 |
syn keyword cFunction TF2_RespawnPlayer TF2_DisguisePlayer TF2_RemovePlayerDisguise TF2_GetResourceEntity |
|
fyrenmoo@2671
|
696 |
syn keyword cFunction TF2_GetClass |
|
fyrenmoo@2671
|
697 |
syn keyword cConstant TFClass_Unknown TFClass_Scout TFClass_Sniper TFClass_Soldier |
|
fyrenmoo@2671
|
698 |
syn keyword cConstant TFClass_DemoMan TFClass_Medic TFClass_Heavy TFClass_Pyro |
|
fyrenmoo@2671
|
699 |
syn keyword cConstant TFClass_Spy TFClass_Engineer TFTeam_Unassigned TFTeam_Spectator |
|
fyrenmoo@2671
|
700 |
syn keyword cConstant TFTeam_Red TFTeam_Blue |
|
fyrenmoo@2671
|
701 |
syn keyword cTag TFClassType TFTeam |
|
fyrenmoo@2671
|
702 |
syn keyword cForward TF2_CalcIsAttackCritical |
|
fyrenmoo@2671
|
703 |
|
|
fyrenmoo@2671
|
704 |
" tf2_stocks.inc |
|
fyrenmoo@2671
|
705 |
syn keyword cFunction TF2_GetPlayerClass TF2_SetPlayerClass TF2_GetPlayerResourceData TF2_SetPlayerResourceData |
|
fyrenmoo@2671
|
706 |
syn keyword cFunction TF2_RemoveWeaponSlot TF2_RemoveAllWeapons |
|
fyrenmoo@2671
|
707 |
syn keyword cConstant TFResource_Ping TFResource_Score TFResource_Deaths TFResource_TotalScore |
|
fyrenmoo@2671
|
708 |
syn keyword cConstant TFResource_Captures TFResource_Defenses TFResource_Dominations TFResource_Revenge |
|
fyrenmoo@2671
|
709 |
syn keyword cConstant TFResource_BuildingsDestroyed TFResource_Headshots TFResource_Backstabs TFResource_HealPoints |
|
fyrenmoo@2671
|
710 |
syn keyword cConstant TFResource_Invulns TFResource_Teleports TFResource_ResupplyPoints TFResource_KillAssists |
|
fyrenmoo@2671
|
711 |
syn keyword cConstant TFResource_MaxHealth TFResource_PlayerClass |
|
fyrenmoo@2671
|
712 |
syn keyword cTag TFResourceType |
|
fyrenmoo@2671
|
713 |
|
|
fyrenmoo@2671
|
714 |
" timers.inc |
|
fyrenmoo@2671
|
715 |
syn keyword cFunction CreateTimer KillTimer TriggerTimer GetTickedTime |
|
fyrenmoo@2671
|
716 |
syn keyword cFunction GetMapTimeLeft GetMapTimeLimit ExtendMapTimeLimit GetTickInterval |
|
fyrenmoo@2671
|
717 |
syn keyword cFunction IsServerProcessing CreateDataTimer |
|
fyrenmoo@2671
|
718 |
syn keyword cConstant TIMER_REPEAT TIMER_FLAG_NO_MAPCHANGE TIMER_HNDL_CLOSE TIMER_DATA_HNDL_CLOSE |
|
fyrenmoo@2671
|
719 |
syn keyword cTag Timer |
|
fyrenmoo@2671
|
720 |
syn keyword cForward OnMapTimeLeftChanged |
|
fyrenmoo@2671
|
721 |
|
|
fyrenmoo@2671
|
722 |
" topmenus.inc |
|
fyrenmoo@2671
|
723 |
syn keyword cFunction CreateTopMenu LoadTopMenuConfig AddToTopMenu GetTopMenuInfoString |
|
fyrenmoo@2671
|
724 |
syn keyword cFunction GetTopMenuObjName RemoveFromTopMenu DisplayTopMenu FindTopMenuCategory |
|
fyrenmoo@2671
|
725 |
syn keyword cConstant TopMenuAction_DisplayOption TopMenuAction_DisplayTitle TopMenuAction_SelectOption TopMenuObject_Category |
|
fyrenmoo@2671
|
726 |
syn keyword cConstant TopMenuObject_Item TopMenuPosition_Start TopMenuPosition_LastRoot TopMenuPosition_LastCategory |
|
fyrenmoo@2671
|
727 |
syn keyword cConstant INVALID_TOPMENUOBJECT |
|
fyrenmoo@2671
|
728 |
syn keyword cTag TopMenuAction TopMenuObjectType TopMenuPosition TopMenuObject |
|
fyrenmoo@2671
|
729 |
syn keyword cTag TopMenuHandler |
|
fyrenmoo@2671
|
730 |
|
|
fyrenmoo@2671
|
731 |
" usermessages.inc |
|
fyrenmoo@2671
|
732 |
syn keyword cFunction GetUserMessageId GetUserMessageName StartMessage StartMessageEx |
|
fyrenmoo@2671
|
733 |
syn keyword cFunction EndMessage HookUserMessage UnhookUserMessage StartMessageAll |
|
fyrenmoo@2671
|
734 |
syn keyword cFunction StartMessageOne |
|
fyrenmoo@2671
|
735 |
syn keyword cConstant INVALID_MESSAGE_ID USERMSG_RELIABLE USERMSG_INITMSG USERMSG_BLOCKHOOKS |
|
fyrenmoo@2671
|
736 |
syn keyword cTag UserMsg MsgHook MsgPostHook |
|
fyrenmoo@2671
|
737 |
|
|
fyrenmoo@2671
|
738 |
" vector.inc |
|
fyrenmoo@2671
|
739 |
syn keyword cFunction GetVectorLength GetVectorDistance GetVectorDotProduct GetVectorCrossProduct |
|
fyrenmoo@2671
|
740 |
syn keyword cFunction NormalizeVector GetAngleVectors GetVectorAngles GetVectorVectors |
|
fyrenmoo@2671
|
741 |
syn keyword cFunction AddVectors SubtractVectors ScaleVector NegateVector |
|
fyrenmoo@2671
|
742 |
syn keyword cFunction MakeVectorFromPoints |
|
fyrenmoo@2671
|
743 |
|
|
fyrenmoo@2671
|
744 |
" version.inc |
|
fyrenmoo@2671
|
745 |
syn keyword cConstant SOURCEMOD_V_MAJOR SOURCEMOD_V_MINOR SOURCEMOD_V_RELEASE SOURCEMOD_VERSION |
|
fyrenmoo@2671
|
746 |
" Accept %: for # (C99) |
|
fyrenmoo@2671
|
747 |
syn region cPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" end="//"me=s-1 contains=cComment,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError |
|
fyrenmoo@2671
|
748 |
syn match cPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>" |
|
fyrenmoo@2671
|
749 |
if !exists("c_no_if0") |
|
fyrenmoo@2671
|
750 |
if !exists("c_no_if0_fold") |
|
fyrenmoo@2671
|
751 |
syn region cCppOut start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2 fold |
|
fyrenmoo@2671
|
752 |
else |
|
fyrenmoo@2671
|
753 |
syn region cCppOut start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2 |
|
fyrenmoo@2671
|
754 |
endif |
|
fyrenmoo@2671
|
755 |
syn region cCppOut2 contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=cSpaceError,cCppSkip |
|
fyrenmoo@2671
|
756 |
syn region cCppSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip |
|
fyrenmoo@2671
|
757 |
endif |
|
fyrenmoo@2671
|
758 |
syn region cIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ |
|
fyrenmoo@2671
|
759 |
syn match cIncluded display contained "<[^>]*>" |
|
fyrenmoo@2671
|
760 |
syn match cInclude display "^\s*\(%:\|#\)\s*\(include\>\|tryinclude\>\)\s*["<]" contains=cIncluded |
|
fyrenmoo@2671
|
761 |
"syn match cLineSkip "\\$" |
|
fyrenmoo@2671
|
762 |
syn cluster cPreProcGroup contains=cPreCondit,cIncluded,cInclude,cDefine,cErrInParen,cErrInBracket,cUserLabel,cSpecial,cOctalZero,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cString,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cParen,cBracket,cMulti |
|
fyrenmoo@2671
|
763 |
syn region cDefine start="^\s*\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" end="//"me=s-1 keepend contains=ALLBUT,@cPreProcGroup,@Spell |
|
fyrenmoo@2671
|
764 |
syn region cPreProc start="^\s*\(%:\|#\)\s*\(assert\>\|emit\>\|endinput\>\|endscript\>\|pragma\>\|line\>\|section\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell |
|
fyrenmoo@2671
|
765 |
|
|
fyrenmoo@2671
|
766 |
" Highlight User Labels |
|
fyrenmoo@2671
|
767 |
syn cluster cMultiGroup contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cNumbersCom,cCppParen,cCppBracket,cCppString |
|
fyrenmoo@2671
|
768 |
syn region cMulti transparent start='?' skip='::' end=':' contains=ALLBUT,@cMultiGroup,@Spell |
|
fyrenmoo@2671
|
769 |
" Avoid matching foo::bar() in C++ by requiring that the next char is not ':' |
|
fyrenmoo@2671
|
770 |
syn cluster cLabelGroup contains=cUserLabel |
|
fyrenmoo@2671
|
771 |
syn match cUserCont display "^\s*\I\i*\s*:$" contains=@cLabelGroup |
|
fyrenmoo@2671
|
772 |
syn match cUserCont display ";\s*\I\i*\s*:$" contains=@cLabelGroup |
|
fyrenmoo@2671
|
773 |
syn match cUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup |
|
fyrenmoo@2671
|
774 |
syn match cUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup |
|
fyrenmoo@2671
|
775 |
|
|
fyrenmoo@2671
|
776 |
syn match cUserLabel display "\I\i*" contained |
|
fyrenmoo@2671
|
777 |
|
|
fyrenmoo@2671
|
778 |
" C++ extentions |
|
fyrenmoo@2671
|
779 |
syn keyword cppStatement new decl |
|
fyrenmoo@2671
|
780 |
syn keyword cppAccess public |
|
fyrenmoo@2671
|
781 |
syn keyword cppOperator operator |
|
fyrenmoo@2671
|
782 |
|
|
fyrenmoo@2671
|
783 |
if exists("c_minlines") |
|
fyrenmoo@2671
|
784 |
let b:c_minlines = c_minlines |
|
fyrenmoo@2671
|
785 |
else |
|
fyrenmoo@2671
|
786 |
if !exists("c_no_if0") |
|
fyrenmoo@2671
|
787 |
let b:c_minlines = 50 " #if 0 constructs can be long |
|
fyrenmoo@2671
|
788 |
else |
|
fyrenmoo@2671
|
789 |
let b:c_minlines = 15 " mostly for () constructs |
|
fyrenmoo@2671
|
790 |
endif |
|
fyrenmoo@2671
|
791 |
endif |
|
fyrenmoo@2671
|
792 |
exec "syn sync ccomment cComment minlines=" . b:c_minlines |
|
fyrenmoo@2671
|
793 |
|
|
fyrenmoo@2671
|
794 |
" Define the default highlighting. |
|
fyrenmoo@2671
|
795 |
" Only used when an item doesn't have highlighting yet |
|
fyrenmoo@2671
|
796 |
hi def link cFormat cSpecial |
|
fyrenmoo@2671
|
797 |
hi def link cCppString cString |
|
fyrenmoo@2671
|
798 |
hi def link cCommentL cComment |
|
fyrenmoo@2671
|
799 |
hi def link cCommentStart cComment |
|
fyrenmoo@2671
|
800 |
hi def link cLabel Label |
|
fyrenmoo@2671
|
801 |
hi def link cUserLabel Label |
|
fyrenmoo@2671
|
802 |
hi def link cConditional Conditional |
|
fyrenmoo@2671
|
803 |
hi def link cRepeat Repeat |
|
fyrenmoo@2671
|
804 |
hi def link cCharacter Character |
|
fyrenmoo@2671
|
805 |
hi def link cSpecialCharacter cSpecial |
|
fyrenmoo@2671
|
806 |
hi def link cNumber Number |
|
fyrenmoo@2671
|
807 |
hi def link cFloat Float |
|
fyrenmoo@2671
|
808 |
hi def link cParenError cError |
|
fyrenmoo@2671
|
809 |
hi def link cErrInParen cError |
|
fyrenmoo@2671
|
810 |
hi def link cErrInBracket cError |
|
fyrenmoo@2671
|
811 |
hi def link cCommentError cError |
|
fyrenmoo@2671
|
812 |
hi def link cCommentStartError cError |
|
fyrenmoo@2671
|
813 |
hi def link cSpaceError cError |
|
fyrenmoo@2671
|
814 |
hi def link cSpecialError cError |
|
fyrenmoo@2671
|
815 |
hi def link cOperator Operator |
|
fyrenmoo@2671
|
816 |
hi def link cStructure Structure |
|
fyrenmoo@2671
|
817 |
hi def link cStorageClass StorageClass |
|
fyrenmoo@2671
|
818 |
hi def link cInclude Include |
|
fyrenmoo@2671
|
819 |
hi def link cPreProc PreProc |
|
fyrenmoo@2671
|
820 |
hi def link cDefine Macro |
|
fyrenmoo@2671
|
821 |
hi def link cIncluded cString |
|
fyrenmoo@2671
|
822 |
hi def link cError Error |
|
fyrenmoo@2671
|
823 |
hi def link cStatement Statement |
|
fyrenmoo@2671
|
824 |
hi def link cPreCondit PreCondit |
|
fyrenmoo@2671
|
825 |
hi def link cTag Type |
|
fyrenmoo@2671
|
826 |
hi def link cConstant Constant |
|
fyrenmoo@2671
|
827 |
hi def link cCommentString cString |
|
fyrenmoo@2671
|
828 |
hi def link cComment2String cString |
|
fyrenmoo@2671
|
829 |
hi def link cCommentSkip cComment |
|
fyrenmoo@2671
|
830 |
hi def link cString String |
|
fyrenmoo@2671
|
831 |
hi def link cComment Comment |
|
fyrenmoo@2671
|
832 |
hi def link cSpecial SpecialChar |
|
fyrenmoo@2671
|
833 |
hi def link cTodo Todo |
|
fyrenmoo@2671
|
834 |
hi def link cCppSkip cCppOut |
|
fyrenmoo@2671
|
835 |
hi def link cCppOut2 cCppOut |
|
fyrenmoo@2671
|
836 |
hi def link cCppOut Comment |
|
fyrenmoo@2671
|
837 |
|
|
fyrenmoo@2671
|
838 |
hi def link cppAccess cppStatement |
|
fyrenmoo@2671
|
839 |
hi def link cppOperator Operator |
|
fyrenmoo@2671
|
840 |
hi def link cppStatement Statement |
|
fyrenmoo@2671
|
841 |
|
|
fyrenmoo@2671
|
842 |
hi def link cFunction Function |
|
fyrenmoo@2671
|
843 |
hi def link cForward Function |
|
fyrenmoo@2671
|
844 |
|
|
fyrenmoo@2671
|
845 |
let b:current_syntax = "sourcepawn" |
|
fyrenmoo@2671
|
846 |
|
|
fyrenmoo@2671
|
847 |
" vim: ts=8 |