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