editor/vim/sourcepawn.vim
changeset 2671 960e54008eab
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/vim/sourcepawn.vim	Wed Mar 18 18:30:35 2009 -0700
     1.3 @@ -0,0 +1,847 @@
     1.4 +" Vim syntax file
     1.5 +" Language:	SourcePawn
     1.6 +" Generated by vimsyntax.pl
     1.7 +
     1.8 +" Quit when a (custom) syntax file was already loaded
     1.9 +"if exists("b:current_syntax")
    1.10 +"  finish
    1.11 +"endif
    1.12 +
    1.13 +" A bunch of useful C keywords
    1.14 +syn keyword	cStatement	goto break return continue assert state sleep exit
    1.15 +syn keyword	cLabel		case default
    1.16 +syn keyword	cConditional	if else switch
    1.17 +syn keyword	cRepeat		while for do
    1.18 +
    1.19 +syn keyword	cTodo		contained TODO FIXME XXX
    1.20 +
    1.21 +" cCommentGroup allows adding matches for special things in comments
    1.22 +syn cluster	cCommentGroup	contains=cTodo
    1.23 +
    1.24 +" String and Character constants
    1.25 +" Highlight special characters (those which have a backslash) differently
    1.26 +syn match	cSpecial	display contained "\\\(x\x\+\|\o\{1,3}\|.\|$\)"
    1.27 +if !exists("c_no_utf")
    1.28 +  syn match	cSpecial	display contained "\\\(u\x\{4}\|U\x\{8}\)"
    1.29 +endif
    1.30 +if exists("c_no_cformat")
    1.31 +  syn region	cString		start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,@Spell
    1.32 +  " cCppString: same as cString, but ends at end of line
    1.33 +  syn region	cCppString	start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,@Spell
    1.34 +else
    1.35 +  if !exists("c_no_c99") " ISO C99
    1.36 +    syn match	cFormat		display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlLjzt]\|ll\|hh\)\=\([aAbdiuoxXDOUfFeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
    1.37 +  else
    1.38 +    syn match	cFormat		display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlL]\|ll\)\=\([bdiuoxXDOUfeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
    1.39 +  endif
    1.40 +  syn match	cFormat		display "%%" contained
    1.41 +  syn region	cString		start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell
    1.42 +  " cCppString: same as cString, but ends at end of line
    1.43 +  syn region	cCppString	start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
    1.44 +endif
    1.45 +
    1.46 +syn match	cCharacter	"L\='[^\\]'"
    1.47 +syn match	cCharacter	"L'[^']*'" contains=cSpecial
    1.48 +if exists("c_gnu")
    1.49 +  syn match	cSpecialError	"L\='\\[^'\"?\\abefnrtv]'"
    1.50 +  syn match	cSpecialCharacter "L\='\\['\"?\\abefnrtv]'"
    1.51 +else
    1.52 +  syn match	cSpecialError	"L\='\\[^'\"?\\abfnrtv]'"
    1.53 +  syn match	cSpecialCharacter "L\='\\['\"?\\abfnrtv]'"
    1.54 +endif
    1.55 +syn match	cSpecialCharacter display "L\='\\\o\{1,3}'"
    1.56 +syn match	cSpecialCharacter display "'\\x\x\{1,2}'"
    1.57 +syn match	cSpecialCharacter display "L'\\x\x\+'"
    1.58 +
    1.59 +"when wanted, highlight trailing white space
    1.60 +if exists("c_space_errors")
    1.61 +  if !exists("c_no_trail_space_error")
    1.62 +    syn match	cSpaceError	display excludenl "\s\+$"
    1.63 +  endif
    1.64 +  if !exists("c_no_tab_space_error")
    1.65 +    syn match	cSpaceError	display " \+\t"me=e-1
    1.66 +  endif
    1.67 +endif
    1.68 +
    1.69 +" This should be before cErrInParen to avoid problems with #define ({ xxx })
    1.70 +syntax region	cBlock		start="{" end="}" transparent fold
    1.71 +
    1.72 +"catch errors caused by wrong parenthesis and brackets
    1.73 +" also accept <% for {, %> for }, <: for [ and :> for ] (C99)
    1.74 +" But avoid matching <::.
    1.75 +syn cluster	cParenGroup	contains=cParenError,cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cCommentSkip,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cNumbersCom
    1.76 +if exists("c_no_curly_error")
    1.77 +  syn region	cParen		transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell
    1.78 +  " cCppParen: same as cParen but ends at end-of-line; used in cDefine
    1.79 +  syn region	cCppParen	transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
    1.80 +  syn match	cParenError	display ")"
    1.81 +  syn match	cErrInParen	display contained "^[{}]\|^<%\|^%>"
    1.82 +elseif exists("c_no_bracket_error")
    1.83 +  syn region	cParen		transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell
    1.84 +  " cCppParen: same as cParen but ends at end-of-line; used in cDefine
    1.85 +  syn region	cCppParen	transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cParen,cString,@Spell
    1.86 +  syn match	cParenError	display ")"
    1.87 +  syn match	cErrInParen	display contained "[{}]\|<%\|%>"
    1.88 +else
    1.89 +  syn region	cParen		transparent start='(' end=')' contains=ALLBUT,@cParenGroup,cCppParen,cErrInBracket,cCppBracket,cCppString,@Spell
    1.90 +  " cCppParen: same as cParen but ends at end-of-line; used in cDefine
    1.91 +  syn region	cCppParen	transparent start='(' skip='\\$' excludenl end=')' end='$' contained contains=ALLBUT,@cParenGroup,cErrInBracket,cParen,cBracket,cString,@Spell
    1.92 +  syn match	cParenError	display "[\])]"
    1.93 +  syn match	cErrInParen	display contained "[\]{}]\|<%\|%>"
    1.94 +  syn region	cBracket	transparent start='\[\|<::\@!' end=']\|:>' contains=ALLBUT,@cParenGroup,cErrInParen,cCppParen,cCppBracket,cCppString,@Spell
    1.95 +  " cCppBracket: same as cParen but ends at end-of-line; used in cDefine
    1.96 +  syn region	cCppBracket	transparent start='\[\|<::\@!' skip='\\$' excludenl end=']\|:>' end='$' contained contains=ALLBUT,@cParenGroup,cErrInParen,cParen,cBracket,cString,@Spell
    1.97 +  syn match	cErrInBracket	display contained "[);{}]\|<%\|%>"
    1.98 +endif
    1.99 +
   1.100 +"integer number, or floating point number without a dot and with "f".
   1.101 +syn case ignore
   1.102 +syn match	cNumbers	display transparent "\<\d\|\.\d" contains=cNumber,cFloat
   1.103 +" Same (for comments)
   1.104 +syn match	cNumbersCom	display contained transparent "\<\d\|\.\d" contains=cNumber,cFloat
   1.105 +syn match	cNumber		display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>"
   1.106 +"hex number
   1.107 +syn match	cNumber		display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>"
   1.108 +syn match	cFloat		display contained "\d\+f"
   1.109 +"floating point number, with dot, optional exponent
   1.110 +syn match	cFloat		display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\="
   1.111 +"floating point number, starting with a dot, optional exponent
   1.112 +syn match	cFloat		display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
   1.113 +"floating point number, without dot, with exponent
   1.114 +syn match	cFloat		display contained "\d\+e[-+]\=\d\+[fl]\=\>"
   1.115 +if !exists("c_no_c99")
   1.116 +  "hexadecimal floating point number, optional leading digits, with dot, with exponent
   1.117 +  syn match	cFloat		display contained "0x\x*\.\x\+p[-+]\=\d\+[fl]\=\>"
   1.118 +  "hexadecimal floating point number, with leading digits, optional dot, with exponent
   1.119 +  syn match	cFloat		display contained "0x\x\+\.\=p[-+]\=\d\+[fl]\=\>"
   1.120 +endif
   1.121 +
   1.122 +syn case match
   1.123 +
   1.124 +if exists("c_comment_strings")
   1.125 +  " A comment can contain cString, cCharacter and cNumber.
   1.126 +  " But a "*/" inside a cString in a cComment DOES end the comment!  So we
   1.127 +  " need to use a special type of cString: cCommentString, which also ends on
   1.128 +  " "*/", and sees a "*" at the start of the line as comment again.
   1.129 +  " Unfortunately this doesn't very well work for // type of comments :-(
   1.130 +  syntax match	cCommentSkip	contained "^\s*\*\($\|\s\+\)"
   1.131 +  syntax region cCommentString	contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1 contains=cSpecial,cCommentSkip
   1.132 +  syntax region cComment2String	contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end="$" contains=cSpecial
   1.133 +  syntax region  cCommentL	start="//" skip="\\$" end="$" keepend contains=@cCommentGroup,cComment2String,cCharacter,cNumbersCom,cSpaceError,@Spell
   1.134 +  if exists("c_no_comment_fold")
   1.135 +    " Use "extend" here to have preprocessor lines not terminate halfway a
   1.136 +    " comment.
   1.137 +    syntax region cComment	matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cCommentString,cCharacter,cNumbersCom,cSpaceError,@Spell extend
   1.138 +  else
   1.139 +    syntax region cComment	matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cCommentString,cCharacter,cNumbersCom,cSpaceError,@Spell fold extend
   1.140 +  endif
   1.141 +else
   1.142 +  syn region	cCommentL	start="//" skip="\\$" end="$" keepend contains=@cCommentGroup,cSpaceError,@Spell
   1.143 +  if exists("c_no_comment_fold")
   1.144 +    syn region	cComment	matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cSpaceError,@Spell
   1.145 +  else
   1.146 +    syn region	cComment	matchgroup=cCommentStart start="/\*" end="\*/" contains=@cCommentGroup,cCommentStartError,cSpaceError,@Spell fold
   1.147 +  endif
   1.148 +endif
   1.149 +" keep a // comment separately, it terminates a preproc. conditional
   1.150 +syntax match	cCommentError	display "\*/"
   1.151 +syntax match	cCommentStartError display "/\*"me=e-1 contained
   1.152 +
   1.153 +syn keyword	cOperator	sizeof tagof state defined char
   1.154 +
   1.155 +syn keyword	cTag 		any bool Fixed Float String Function
   1.156 +
   1.157 +syn keyword	cStructure	enum
   1.158 +syn keyword	cStorageClass	static const stock native forward
   1.159 +
   1.160 +" Constants
   1.161 +" ======
   1.162 +syn keyword 	cConstant 	cellbits cellmax cellmin charbits charmax charmin ucharmax __Pawn debug
   1.163 +syn keyword 	cConstant 	true false
   1.164 +
   1.165 +" admin.inc
   1.166 +syn keyword	cFunction	DumpAdminCache AddCommandOverride GetCommandOverride UnsetCommandOverride
   1.167 +syn keyword	cFunction	CreateAdmGroup FindAdmGroup SetAdmGroupAddFlag GetAdmGroupAddFlag
   1.168 +syn keyword	cFunction	GetAdmGroupAddFlags SetAdmGroupImmunity GetAdmGroupImmunity SetAdmGroupImmuneFrom
   1.169 +syn keyword	cFunction	GetAdmGroupImmuneCount GetAdmGroupImmuneFrom AddAdmGroupCmdOverride GetAdmGroupCmdOverride
   1.170 +syn keyword	cFunction	RegisterAuthIdentType CreateAdmin GetAdminUsername BindAdminIdentity
   1.171 +syn keyword	cFunction	SetAdminFlag GetAdminFlag GetAdminFlags AdminInheritGroup
   1.172 +syn keyword	cFunction	GetAdminGroupCount GetAdminGroup SetAdminPassword GetAdminPassword
   1.173 +syn keyword	cFunction	FindAdminByIdentity RemoveAdmin FlagBitsToBitArray FlagBitArrayToBits
   1.174 +syn keyword	cFunction	FlagArrayToBits FlagBitsToArray FindFlagByName FindFlagByChar
   1.175 +syn keyword	cFunction	ReadFlagString CanAdminTarget CreateAuthMethod SetAdmGroupImmunityLevel
   1.176 +syn keyword	cFunction	GetAdmGroupImmunityLevel SetAdminImmunityLevel GetAdminImmunityLevel FlagToBit
   1.177 +syn keyword	cFunction	BitToFlag   
   1.178 +syn keyword	cConstant	Admin_Reservation Admin_Generic Admin_Kick Admin_Ban
   1.179 +syn keyword	cConstant	Admin_Unban Admin_Slay Admin_Changemap Admin_Convars
   1.180 +syn keyword	cConstant	Admin_Config Admin_Chat Admin_Vote Admin_Password
   1.181 +syn keyword	cConstant	Admin_RCON Admin_Cheats Admin_Root Admin_Custom1
   1.182 +syn keyword	cConstant	Admin_Custom2 Admin_Custom3 Admin_Custom4 Admin_Custom5
   1.183 +syn keyword	cConstant	Admin_Custom6 AdminFlags_TOTAL ADMFLAG_RESERVATION ADMFLAG_GENERIC
   1.184 +syn keyword	cConstant	ADMFLAG_KICK ADMFLAG_BAN ADMFLAG_UNBAN ADMFLAG_SLAY
   1.185 +syn keyword	cConstant	ADMFLAG_CHANGEMAP ADMFLAG_CONVARS ADMFLAG_CONFIG ADMFLAG_CHAT
   1.186 +syn keyword	cConstant	ADMFLAG_VOTE ADMFLAG_PASSWORD ADMFLAG_RCON ADMFLAG_CHEATS
   1.187 +syn keyword	cConstant	ADMFLAG_ROOT ADMFLAG_CUSTOM1 ADMFLAG_CUSTOM2 ADMFLAG_CUSTOM3
   1.188 +syn keyword	cConstant	ADMFLAG_CUSTOM4 ADMFLAG_CUSTOM5 ADMFLAG_CUSTOM6 AUTHMETHOD_STEAM
   1.189 +syn keyword	cConstant	AUTHMETHOD_IP AUTHMETHOD_NAME Override_Command Override_CommandGroup
   1.190 +syn keyword	cConstant	Command_Deny Command_Allow Immunity_Default Immunity_Global
   1.191 +syn keyword	cConstant	INVALID_GROUP_ID INVALID_ADMIN_ID Access_Real Access_Effective
   1.192 +syn keyword	cConstant	AdminCache_Overrides AdminCache_Groups AdminCache_Admins 
   1.193 +syn keyword	cTag		AdminFlag OverrideType OverrideRule ImmunityType
   1.194 +syn keyword	cTag		GroupId AdminId AdmAccessMode AdminCachePart
   1.195 +syn keyword	cForward	OnRebuildAdminCache   
   1.196 +
   1.197 +" adminmenu.inc
   1.198 +syn keyword	cFunction	GetAdminTopMenu AddTargetsToMenu AddTargetsToMenu2 RedisplayAdminMenu
   1.199 +syn keyword	cConstant	ADMINMENU_PLAYERCOMMANDS ADMINMENU_SERVERCOMMANDS ADMINMENU_VOTINGCOMMANDS 
   1.200 +syn keyword	cForward	OnAdminMenuCreated OnAdminMenuReady  
   1.201 +
   1.202 +" adt.inc
   1.203 +
   1.204 +" adt_array.inc
   1.205 +syn keyword	cFunction	ByteCountToCells CreateArray ClearArray CloneArray
   1.206 +syn keyword	cFunction	ResizeArray GetArraySize PushArrayCell PushArrayString
   1.207 +syn keyword	cFunction	PushArrayArray GetArrayCell GetArrayString GetArrayArray
   1.208 +syn keyword	cFunction	SetArrayCell SetArrayString SetArrayArray ShiftArrayUp
   1.209 +syn keyword	cFunction	RemoveFromArray SwapArrayItems FindStringInArray FindValueInArray
   1.210 +
   1.211 +" adt_stack.inc
   1.212 +syn keyword	cFunction	CreateStack PushStackCell PushStackString PushStackArray
   1.213 +syn keyword	cFunction	PopStackCell PopStackString PopStackArray IsStackEmpty
   1.214 +syn keyword	cFunction	PopStack   
   1.215 +
   1.216 +" adt_trie.inc
   1.217 +syn keyword	cFunction	CreateTrie SetTrieValue SetTrieArray SetTrieString
   1.218 +syn keyword	cFunction	GetTrieValue GetTrieArray GetTrieString RemoveFromTrie
   1.219 +syn keyword	cFunction	ClearTrie GetTrieSize  
   1.220 +
   1.221 +" banning.inc
   1.222 +syn keyword	cFunction	BanClient BanIdentity RemoveBan 
   1.223 +syn keyword	cConstant	BANFLAG_AUTO BANFLAG_IP BANFLAG_AUTHID BANFLAG_NOKICK
   1.224 +syn keyword	cForward	OnBanClient OnBanIdentity OnRemoveBan 
   1.225 +
   1.226 +" bitbuffer.inc
   1.227 +syn keyword	cFunction	BfWriteBool BfWriteByte BfWriteChar BfWriteShort
   1.228 +syn keyword	cFunction	BfWriteWord BfWriteNum BfWriteFloat BfWriteString
   1.229 +syn keyword	cFunction	BfWriteEntity BfWriteAngle BfWriteCoord BfWriteVecCoord
   1.230 +syn keyword	cFunction	BfWriteVecNormal BfWriteAngles BfReadBool BfReadByte
   1.231 +syn keyword	cFunction	BfReadChar BfReadShort BfReadWord BfReadNum
   1.232 +syn keyword	cFunction	BfReadFloat BfReadString BfReadEntity BfReadAngle
   1.233 +syn keyword	cFunction	BfReadCoord BfReadVecCoord BfReadVecNormal BfReadAngles
   1.234 +syn keyword	cFunction	BfGetNumBytesLeft   
   1.235 +
   1.236 +" clientprefs.inc
   1.237 +syn keyword	cFunction	RegClientCookie FindClientCookie SetClientCookie GetClientCookie
   1.238 +syn keyword	cFunction	AreClientCookiesCached SetCookiePrefabMenu SetCookieMenuItem ShowCookieMenu
   1.239 +syn keyword	cFunction	GetCookieIterator ReadCookieIterator GetCookieAccess 
   1.240 +syn keyword	cConstant	CookieAccess_Public CookieAccess_Protected CookieAccess_Private CookieMenu_YesNo
   1.241 +syn keyword	cConstant	CookieMenu_YesNo_Int CookieMenu_OnOff CookieMenu_OnOff_Int CookieMenuAction_DisplayOption
   1.242 +syn keyword	cConstant	CookieMenuAction_SelectOption   
   1.243 +syn keyword	cTag		CookieAccess CookieMenu CookieMenuAction CookieMenuHandler
   1.244 +syn keyword	cForward	OnClientCookiesCached   
   1.245 +
   1.246 +" clients.inc
   1.247 +syn keyword	cFunction	GetMaxClients GetClientCount GetClientName GetClientIP
   1.248 +syn keyword	cFunction	GetClientAuthString GetClientUserId IsClientConnected IsClientInGame
   1.249 +syn keyword	cFunction	IsClientInKickQueue IsPlayerInGame IsClientAuthorized IsFakeClient
   1.250 +syn keyword	cFunction	IsClientObserver IsPlayerAlive GetClientInfo GetClientTeam
   1.251 +syn keyword	cFunction	SetUserAdmin GetUserAdmin AddUserFlags RemoveUserFlags
   1.252 +syn keyword	cFunction	SetUserFlagBits GetUserFlagBits CanUserTarget RunAdminCacheChecks
   1.253 +syn keyword	cFunction	NotifyPostAdminCheck CreateFakeClient SetFakeClientConVar GetClientHealth
   1.254 +syn keyword	cFunction	GetClientModel GetClientWeapon GetClientMaxs GetClientMins
   1.255 +syn keyword	cFunction	GetClientAbsAngles GetClientAbsOrigin GetClientArmor GetClientDeaths
   1.256 +syn keyword	cFunction	GetClientFrags GetClientDataRate IsClientTimingOut GetClientTime
   1.257 +syn keyword	cFunction	GetClientLatency GetClientAvgLatency GetClientAvgLoss GetClientAvgChoke
   1.258 +syn keyword	cFunction	GetClientAvgData GetClientAvgPackets GetClientOfUserId KickClient
   1.259 +syn keyword	cFunction	KickClientEx ChangeClientTeam GetClientSerial GetClientFromSerial
   1.260 +syn keyword	cConstant	NetFlow_Outgoing NetFlow_Incoming NetFlow_Both MAXPLAYERS
   1.261 +syn keyword	cConstant	MAX_NAME_LENGTH MaxClients  
   1.262 +syn keyword	cTag		NetFlow   
   1.263 +syn keyword	cForward	OnClientConnect OnClientConnected OnClientPutInServer OnClientDisconnect
   1.264 +syn keyword	cForward	OnClientDisconnect_Post OnClientCommand OnClientSettingsChanged OnClientAuthorized
   1.265 +syn keyword	cForward	OnClientPreAdminCheck OnClientPostAdminFilter OnClientPostAdminCheck 
   1.266 +
   1.267 +" commandfilters.inc
   1.268 +syn keyword	cFunction	ProcessTargetString ReplyToTargetError  
   1.269 +syn keyword	cConstant	MAX_TARGET_LENGTH COMMAND_FILTER_ALIVE COMMAND_FILTER_DEAD COMMAND_FILTER_CONNECTED
   1.270 +syn keyword	cConstant	COMMAND_FILTER_NO_IMMUNITY COMMAND_FILTER_NO_MULTI COMMAND_FILTER_NO_BOTS COMMAND_TARGET_NONE
   1.271 +syn keyword	cConstant	COMMAND_TARGET_NOT_ALIVE COMMAND_TARGET_NOT_DEAD COMMAND_TARGET_NOT_IN_GAME COMMAND_TARGET_IMMUNE
   1.272 +syn keyword	cConstant	COMMAND_TARGET_EMPTY_FILTER COMMAND_TARGET_NOT_HUMAN COMMAND_TARGET_AMBIGUOUS 
   1.273 +
   1.274 +" console.inc
   1.275 +syn keyword	cFunction	ServerCommand InsertServerCommand ServerExecute ClientCommand
   1.276 +syn keyword	cFunction	FakeClientCommand FakeClientCommandEx PrintToServer PrintToConsole
   1.277 +syn keyword	cFunction	ReplyToCommand GetCmdReplySource SetCmdReplySource IsChatTrigger
   1.278 +syn keyword	cFunction	ShowActivity2 ShowActivity ShowActivityEx FormatActivitySource
   1.279 +syn keyword	cFunction	RegServerCmd RegConsoleCmd RegAdminCmd GetCmdArgs
   1.280 +syn keyword	cFunction	GetCmdArg GetCmdArgString CreateConVar FindConVar
   1.281 +syn keyword	cFunction	HookConVarChange UnhookConVarChange GetConVarBool SetConVarBool
   1.282 +syn keyword	cFunction	GetConVarInt SetConVarInt GetConVarFloat SetConVarFloat
   1.283 +syn keyword	cFunction	GetConVarString SetConVarString ResetConVar GetConVarFlags
   1.284 +syn keyword	cFunction	SetConVarFlags GetConVarBounds SetConVarBounds GetConVarName
   1.285 +syn keyword	cFunction	QueryClientConVar GetCommandIterator ReadCommandIterator CheckCommandAccess
   1.286 +syn keyword	cFunction	IsValidConVarChar GetCommandFlags SetCommandFlags FindFirstConCommand
   1.287 +syn keyword	cFunction	FindNextConCommand SendConVarValue AddServerTag RemoveServerTag
   1.288 +syn keyword	cConstant	INVALID_FCVAR_FLAGS ConVarBound_Upper ConVarBound_Lower QUERYCOOKIE_FAILED
   1.289 +syn keyword	cConstant	SM_REPLY_TO_CONSOLE SM_REPLY_TO_CHAT ConVarQuery_Okay ConVarQuery_NotFound
   1.290 +syn keyword	cConstant	ConVarQuery_NotValid ConVarQuery_Protected FCVAR_NONE FCVAR_UNREGISTERED
   1.291 +syn keyword	cConstant	FCVAR_LAUNCHER FCVAR_GAMEDLL FCVAR_CLIENTDLL FCVAR_MATERIAL_SYSTEM
   1.292 +syn keyword	cConstant	FCVAR_PROTECTED FCVAR_SPONLY FCVAR_ARCHIVE FCVAR_NOTIFY
   1.293 +syn keyword	cConstant	FCVAR_USERINFO FCVAR_PRINTABLEONLY FCVAR_UNLOGGED FCVAR_NEVER_AS_STRING
   1.294 +syn keyword	cConstant	FCVAR_REPLICATED FCVAR_CHEAT FCVAR_STUDIORENDER FCVAR_DEMO
   1.295 +syn keyword	cConstant	FCVAR_DONTRECORD FCVAR_PLUGIN FCVAR_DATACACHE FCVAR_TOOLSYSTEM
   1.296 +syn keyword	cConstant	FCVAR_FILESYSTEM FCVAR_NOT_CONNECTED FCVAR_SOUNDSYSTEM FCVAR_ARCHIVE_XBOX
   1.297 +syn keyword	cConstant	FCVAR_INPUTSYSTEM FCVAR_NETWORKSYSTEM FCVAR_VPHYSICS 
   1.298 +syn keyword	cTag		ConVarBounds QueryCookie ReplySource ConVarQueryResult
   1.299 +syn keyword	cTag		SrvCmd ConCmd ConVarChanged ConVarQueryFinished
   1.300 +
   1.301 +" core.inc
   1.302 +syn keyword	cFunction	VerifyCoreVersion   
   1.303 +syn keyword	cConstant	SOURCEMOD_PLUGINAPI_VERSION Plugin_Continue Plugin_Changed Plugin_Handled
   1.304 +syn keyword	cConstant	Plugin_Stop Identity_Core Identity_Extension Identity_Plugin
   1.305 +syn keyword	cConstant	Plugin_Running Plugin_Paused Plugin_Error Plugin_Loaded
   1.306 +syn keyword	cConstant	Plugin_Failed Plugin_Created Plugin_Uncompiled Plugin_BadLoad
   1.307 +syn keyword	cConstant	PlInfo_Name PlInfo_Author PlInfo_Description PlInfo_Version
   1.308 +syn keyword	cConstant	PlInfo_URL NULL_VECTOR NULL_STRING 
   1.309 +syn keyword	cTag		PlVers Function Action Identity
   1.310 +syn keyword	cTag		PluginStatus PluginInfo Extension SharedPlugin
   1.311 +
   1.312 +" cstrike.inc
   1.313 +syn keyword	cFunction	CS_RespawnPlayer CS_SwitchTeam  
   1.314 +syn keyword	cConstant	CS_TEAM_NONE CS_TEAM_SPECTATOR CS_TEAM_T CS_TEAM_CT
   1.315 +syn keyword	cConstant	CS_SLOT_PRIMARY CS_SLOT_SECONDARY CS_SLOT_GRENADE CS_SLOT_C4
   1.316 +
   1.317 +" datapack.inc
   1.318 +syn keyword	cFunction	CreateDataPack WritePackCell WritePackFloat WritePackString
   1.319 +syn keyword	cFunction	ReadPackCell ReadPackFloat ReadPackString ResetPack
   1.320 +syn keyword	cFunction	GetPackPosition SetPackPosition IsPackReadable 
   1.321 +
   1.322 +" dbi.inc
   1.323 +syn keyword	cFunction	SQL_Connect SQL_DefConnect SQL_ConnectCustom SQLite_UseDatabase
   1.324 +syn keyword	cFunction	SQL_ConnectEx SQL_CheckConfig SQL_GetDriver SQL_ReadDriver
   1.325 +syn keyword	cFunction	SQL_GetDriverIdent SQL_GetDriverProduct SQL_GetAffectedRows SQL_GetInsertId
   1.326 +syn keyword	cFunction	SQL_GetError SQL_EscapeString SQL_QuoteString SQL_FastQuery
   1.327 +syn keyword	cFunction	SQL_Query SQL_PrepareQuery SQL_FetchMoreResults SQL_HasResultSet
   1.328 +syn keyword	cFunction	SQL_GetRowCount SQL_GetFieldCount SQL_FieldNumToName SQL_FieldNameToNum
   1.329 +syn keyword	cFunction	SQL_FetchRow SQL_MoreRows SQL_Rewind SQL_FetchString
   1.330 +syn keyword	cFunction	SQL_FetchFloat SQL_FetchInt SQL_IsFieldNull SQL_FetchSize
   1.331 +syn keyword	cFunction	SQL_BindParamInt SQL_BindParamFloat SQL_BindParamString SQL_Execute
   1.332 +syn keyword	cFunction	SQL_LockDatabase SQL_UnlockDatabase SQL_IsSameConnection SQL_TConnect
   1.333 +syn keyword	cFunction	SQL_TQuery   
   1.334 +syn keyword	cConstant	DBVal_Error DBVal_TypeMismatch DBVal_Null DBVal_Data
   1.335 +syn keyword	cConstant	DBBind_Int DBBind_Float DBBind_String DBPrio_High
   1.336 +syn keyword	cConstant	DBPrio_Normal DBPrio_Low  
   1.337 +syn keyword	cTag		DBResult DBBindType DBPriority SQLTCallback
   1.338 +
   1.339 +" entity.inc
   1.340 +syn keyword	cFunction	GetMaxEntities GetEntityCount IsValidEntity IsValidEdict
   1.341 +syn keyword	cFunction	IsEntNetworkable CreateEdict RemoveEdict GetEdictFlags
   1.342 +syn keyword	cFunction	SetEdictFlags GetEdictClassname GetEntityNetClass ChangeEdictState
   1.343 +syn keyword	cFunction	GetEntData SetEntData GetEntDataFloat SetEntDataFloat
   1.344 +syn keyword	cFunction	GetEntDataEnt SetEntDataEnt GetEntDataEnt2 SetEntDataEnt2
   1.345 +syn keyword	cFunction	GetEntDataVector SetEntDataVector GetEntDataString SetEntDataString
   1.346 +syn keyword	cFunction	FindSendPropOffs FindSendPropInfo FindDataMapOffs GetEntSendPropOffs
   1.347 +syn keyword	cFunction	GetEntProp SetEntProp GetEntPropFloat SetEntPropFloat
   1.348 +syn keyword	cFunction	GetEntPropEnt SetEntPropEnt GetEntPropVector SetEntPropVector
   1.349 +syn keyword	cFunction	GetEntPropString SetEntPropString GetEntDataArray SetEntDataArray
   1.350 +syn keyword	cConstant	Prop_Send Prop_Data FL_EDICT_CHANGED FL_EDICT_FREE
   1.351 +syn keyword	cConstant	FL_EDICT_FULL FL_EDICT_FULLCHECK FL_EDICT_ALWAYS FL_EDICT_DONTSEND
   1.352 +syn keyword	cConstant	FL_EDICT_PVSCHECK FL_EDICT_PENDING_DORMANT_CHECK FL_EDICT_DIRTY_PVS_INFORMATION FL_FULL_EDICT_CHANGED
   1.353 +syn keyword	cConstant	PropField_Unsupported PropField_Integer PropField_Float PropField_Entity
   1.354 +syn keyword	cConstant	PropField_Vector PropField_String PropField_String_T 
   1.355 +syn keyword	cTag		PropType PropFieldType  
   1.356 +
   1.357 +" entity_prop_stocks.inc
   1.358 +syn keyword	cFunction	GetEntityFlags GetEntityMoveType SetEntityMoveType GetEntityRenderMode
   1.359 +syn keyword	cFunction	SetEntityRenderMode GetEntityRenderFx SetEntityRenderFx SetEntityRenderColor
   1.360 +syn keyword	cFunction	GetEntityGravity SetEntityGravity SetEntityHealth GetClientButtons
   1.361 +syn keyword	cConstant	MOVETYPE_NONE MOVETYPE_ISOMETRIC MOVETYPE_WALK MOVETYPE_STEP
   1.362 +syn keyword	cConstant	MOVETYPE_FLY MOVETYPE_FLYGRAVITY MOVETYPE_VPHYSICS MOVETYPE_PUSH
   1.363 +syn keyword	cConstant	MOVETYPE_NOCLIP MOVETYPE_LADDER MOVETYPE_OBSERVER MOVETYPE_CUSTOM
   1.364 +syn keyword	cConstant	RENDER_NORMAL RENDER_TRANSCOLOR RENDER_TRANSTEXTURE RENDER_GLOW
   1.365 +syn keyword	cConstant	RENDER_TRANSALPHA RENDER_TRANSADD RENDER_ENVIRONMENTAL RENDER_TRANSADDFRAMEBLEND
   1.366 +syn keyword	cConstant	RENDER_TRANSALPHAADD RENDER_WORLDGLOW RENDER_NONE RENDERFX_NONE
   1.367 +syn keyword	cConstant	RENDERFX_PULSE_SLOW RENDERFX_PULSE_FAST RENDERFX_PULSE_SLOW_WIDE RENDERFX_PULSE_FAST_WIDE
   1.368 +syn keyword	cConstant	RENDERFX_FADE_SLOW RENDERFX_FADE_FAST RENDERFX_SOLID_SLOW RENDERFX_SOLID_FAST
   1.369 +syn keyword	cConstant	RENDERFX_STROBE_SLOW RENDERFX_STROBE_FAST RENDERFX_STROBE_FASTER RENDERFX_FLICKER_SLOW
   1.370 +syn keyword	cConstant	RENDERFX_FLICKER_FAST RENDERFX_NO_DISSIPATION RENDERFX_DISTORT RENDERFX_HOLOGRAM
   1.371 +syn keyword	cConstant	RENDERFX_EXPLODE RENDERFX_GLOWSHELL RENDERFX_CLAMP_MIN_SCALE RENDERFX_ENV_RAIN
   1.372 +syn keyword	cConstant	RENDERFX_ENV_SNOW RENDERFX_SPOTLIGHT RENDERFX_RAGDOLL RENDERFX_PULSE_FAST_WIDER
   1.373 +syn keyword	cConstant	RENDERFX_MAX IN_ATTACK IN_JUMP IN_DUCK
   1.374 +syn keyword	cConstant	IN_FORWARD IN_BACK IN_USE IN_CANCEL
   1.375 +syn keyword	cConstant	IN_LEFT IN_RIGHT IN_MOVELEFT IN_MOVERIGHT
   1.376 +syn keyword	cConstant	IN_ATTACK2 IN_RUN IN_RELOAD IN_ALT1
   1.377 +syn keyword	cConstant	IN_ALT2 IN_SCORE IN_SPEED IN_WALK
   1.378 +syn keyword	cConstant	IN_ZOOM IN_WEAPON1 IN_WEAPON2 IN_BULLRUSH
   1.379 +syn keyword	cConstant	IN_GRENADE1 IN_GRENADE2 FL_ONGROUND FL_DUCKING
   1.380 +syn keyword	cConstant	FL_WATERJUMP FL_ONTRAIN FL_INRAIN FL_FROZEN
   1.381 +syn keyword	cConstant	FL_ATCONTROLS FL_CLIENT FL_FAKECLIENT PLAYER_FLAG_BITS
   1.382 +syn keyword	cConstant	FL_INWATER FL_FLY FL_SWIM FL_CONVEYOR
   1.383 +syn keyword	cConstant	FL_NPC FL_GODMODE FL_NOTARGET FL_AIMTARGET
   1.384 +syn keyword	cConstant	FL_PARTIALGROUND FL_STATICPROP FL_GRAPHED FL_GRENADE
   1.385 +syn keyword	cConstant	FL_STEPMOVEMENT FL_DONTTOUCH FL_BASEVELOCITY FL_WORLDBRUSH
   1.386 +syn keyword	cConstant	FL_OBJECT FL_KILLME FL_ONFIRE FL_DISSOLVING
   1.387 +syn keyword	cConstant	FL_TRANSRAGDOLL FL_UNBLOCKABLE_BY_PLAYER  
   1.388 +syn keyword	cTag		MoveType RenderMode RenderFx 
   1.389 +
   1.390 +" events.inc
   1.391 +syn keyword	cFunction	HookEvent HookEventEx UnhookEvent CreateEvent
   1.392 +syn keyword	cFunction	FireEvent CancelCreatedEvent GetEventBool SetEventBool
   1.393 +syn keyword	cFunction	GetEventInt SetEventInt GetEventFloat SetEventFloat
   1.394 +syn keyword	cFunction	GetEventString SetEventString GetEventName 
   1.395 +syn keyword	cConstant	EventHookMode_Pre EventHookMode_Post EventHookMode_PostNoCopy 
   1.396 +syn keyword	cTag		EventHookMode EventHook  
   1.397 +
   1.398 +" files.inc
   1.399 +syn keyword	cFunction	BuildPath OpenDirectory ReadDirEntry OpenFile
   1.400 +syn keyword	cFunction	DeleteFile ReadFileLine ReadFile ReadFileString
   1.401 +syn keyword	cFunction	WriteFile WriteFileString WriteFileLine ReadFileCell
   1.402 +syn keyword	cFunction	WriteFileCell IsEndOfFile FileSeek FilePosition
   1.403 +syn keyword	cFunction	FileExists RenameFile DirExists FileSize
   1.404 +syn keyword	cFunction	FlushFile RemoveDir CreateDirectory GetFileTime
   1.405 +syn keyword	cFunction	LogToOpenFile LogToOpenFileEx  
   1.406 +syn keyword	cConstant	FileType_Unknown FileType_Directory FileType_File FileTime_LastAccess
   1.407 +syn keyword	cConstant	FileTime_Created FileTime_LastChange PLATFORM_MAX_PATH SEEK_SET
   1.408 +syn keyword	cConstant	SEEK_CUR SEEK_END Path_SM FPERM_U_READ
   1.409 +syn keyword	cConstant	FPERM_U_WRITE FPERM_U_EXEC FPERM_G_READ FPERM_G_WRITE
   1.410 +syn keyword	cConstant	FPERM_G_EXEC FPERM_O_READ FPERM_O_WRITE FPERM_O_EXEC
   1.411 +syn keyword	cTag		FileType FileTimeMode PathType 
   1.412 +
   1.413 +" float.inc
   1.414 +syn keyword	cFunction	float FloatMul FloatDiv FloatAdd
   1.415 +syn keyword	cFunction	FloatSub FloatFraction RoundToZero RoundToCeil
   1.416 +syn keyword	cFunction	RoundToFloor RoundToNearest FloatCompare SquareRoot
   1.417 +syn keyword	cFunction	Pow Exponential Logarithm Sine
   1.418 +syn keyword	cFunction	Cosine Tangent FloatAbs ArcTangent
   1.419 +syn keyword	cFunction	ArcCosine ArcSine ArcTangent2 RoundFloat
   1.420 +syn keyword	cFunction	DegToRad RadToDeg  
   1.421 +syn keyword	cConstant	FLOAT_PI   
   1.422 +
   1.423 +" functions.inc
   1.424 +syn keyword	cFunction	GetFunctionByName CreateGlobalForward CreateForward GetForwardFunctionCount
   1.425 +syn keyword	cFunction	AddToForward RemoveFromForward RemoveAllFromForward Call_StartForward
   1.426 +syn keyword	cFunction	Call_StartFunction Call_PushCell Call_PushCellRef Call_PushFloat
   1.427 +syn keyword	cFunction	Call_PushFloatRef Call_PushArray Call_PushArrayEx Call_PushString
   1.428 +syn keyword	cFunction	Call_PushStringEx Call_Finish Call_Cancel CreateNative
   1.429 +syn keyword	cFunction	ThrowNativeError GetNativeStringLength GetNativeString SetNativeString
   1.430 +syn keyword	cFunction	GetNativeCell GetNativeCellRef SetNativeCellRef GetNativeArray
   1.431 +syn keyword	cFunction	SetNativeArray FormatNativeString  
   1.432 +syn keyword	cConstant	SP_PARAMFLAG_BYREF Param_Any Param_Cell Param_Float
   1.433 +syn keyword	cConstant	Param_String Param_Array Param_VarArgs Param_CellByRef
   1.434 +syn keyword	cConstant	Param_FloatByRef ET_Ignore ET_Single ET_Event
   1.435 +syn keyword	cConstant	ET_Hook SM_PARAM_COPYBACK SM_PARAM_STRING_UTF8 SM_PARAM_STRING_COPY
   1.436 +syn keyword	cConstant	SM_PARAM_STRING_BINARY SP_ERROR_NONE SP_ERROR_FILE_FORMAT SP_ERROR_DECOMPRESSOR
   1.437 +syn keyword	cConstant	SP_ERROR_HEAPLOW SP_ERROR_PARAM SP_ERROR_INVALID_ADDRESS SP_ERROR_NOT_FOUND
   1.438 +syn keyword	cConstant	SP_ERROR_INDEX SP_ERROR_STACKLOW SP_ERROR_NOTDEBUGGING SP_ERROR_INVALID_INSTRUCTION
   1.439 +syn keyword	cConstant	SP_ERROR_MEMACCESS SP_ERROR_STACKMIN SP_ERROR_HEAPMIN SP_ERROR_DIVIDE_BY_ZERO
   1.440 +syn keyword	cConstant	SP_ERROR_ARRAY_BOUNDS SP_ERROR_INSTRUCTION_PARAM SP_ERROR_STACKLEAK SP_ERROR_HEAPLEAK
   1.441 +syn keyword	cConstant	SP_ERROR_ARRAY_TOO_BIG SP_ERROR_TRACKER_BOUNDS SP_ERROR_INVALID_NATIVE SP_ERROR_PARAMS_MAX
   1.442 +syn keyword	cConstant	SP_ERROR_NATIVE SP_ERROR_NOT_RUNNABLE SP_ERROR_ABORTED 
   1.443 +syn keyword	cTag		ParamType ExecType NativeCall 
   1.444 +
   1.445 +" geoip.inc
   1.446 +syn keyword	cFunction	GeoipCode2 GeoipCode3 GeoipCountry 
   1.447 +
   1.448 +" halflife.inc
   1.449 +syn keyword	cFunction	LogToGame SetRandomSeed GetRandomFloat GetRandomInt
   1.450 +syn keyword	cFunction	IsMapValid IsDedicatedServer GetEngineTime GetGameTime
   1.451 +syn keyword	cFunction	GetGameDescription GetGameFolderName GetCurrentMap PrecacheModel
   1.452 +syn keyword	cFunction	PrecacheSentenceFile PrecacheDecal PrecacheGeneric IsModelPrecached
   1.453 +syn keyword	cFunction	IsDecalPrecached IsGenericPrecached PrecacheSound IsSoundPrecached
   1.454 +syn keyword	cFunction	CreateDialog GuessSDKVersion PrintToChat PrintToChatAll
   1.455 +syn keyword	cFunction	PrintCenterText PrintCenterTextAll PrintHintText PrintHintTextToAll
   1.456 +syn keyword	cFunction	ShowVGUIPanel CreateHudSynchronizer SetHudTextParams SetHudTextParamsEx
   1.457 +syn keyword	cFunction	ShowSyncHudText ClearSyncHud ShowHudText ShowMOTDPanel
   1.458 +syn keyword	cFunction	DisplayAskConnectBox   
   1.459 +syn keyword	cConstant	SOURCE_SDK_UNKNOWN SOURCE_SDK_ORIGINAL SOURCE_SDK_DARKMESSIAH SOURCE_SDK_EPISODE1
   1.460 +syn keyword	cConstant	SOURCE_SDK_EPISODE2 SOURCE_SDK_LEFT4DEAD MOTDPANEL_TYPE_TEXT MOTDPANEL_TYPE_INDEX
   1.461 +syn keyword	cConstant	MOTDPANEL_TYPE_URL MOTDPANEL_TYPE_FILE DialogType_Msg DialogType_Menu
   1.462 +syn keyword	cConstant	DialogType_Text DialogType_Entry DialogType_AskConnect 
   1.463 +syn keyword	cTag		DialogType   
   1.464 +
   1.465 +" handles.inc
   1.466 +syn keyword	cFunction	CloseHandle CloneHandle IsValidHandle 
   1.467 +syn keyword	cConstant	INVALID_HANDLE   
   1.468 +syn keyword	cTag		Handle   
   1.469 +
   1.470 +" helpers.inc
   1.471 +syn keyword	cFunction	FormatUserLogText FindPluginByFile SearchForClients FindTarget
   1.472 +syn keyword	cFunction	LoadMaps   
   1.473 +
   1.474 +" keyvalues.inc
   1.475 +syn keyword	cFunction	CreateKeyValues KvSetString KvSetNum KvSetUInt64
   1.476 +syn keyword	cFunction	KvSetFloat KvSetColor KvSetVector KvGetString
   1.477 +syn keyword	cFunction	KvGetNum KvGetFloat KvGetColor KvGetUInt64
   1.478 +syn keyword	cFunction	KvGetVector KvJumpToKey KvJumpToKeySymbol KvGotoFirstSubKey
   1.479 +syn keyword	cFunction	KvGotoNextKey KvSavePosition KvDeleteKey KvDeleteThis
   1.480 +syn keyword	cFunction	KvGoBack KvRewind KvGetSectionName KvSetSectionName
   1.481 +syn keyword	cFunction	KvGetDataType KeyValuesToFile FileToKeyValues KvSetEscapeSequences
   1.482 +syn keyword	cFunction	KvNodesInStack KvCopySubkeys KvFindKeyById KvGetNameSymbol
   1.483 +syn keyword	cFunction	KvGetSectionSymbol   
   1.484 +syn keyword	cConstant	KvData_None KvData_String KvData_Int KvData_Float
   1.485 +syn keyword	cConstant	KvData_Ptr KvData_WString KvData_Color KvData_UInt64
   1.486 +syn keyword	cConstant	KvData_NUMTYPES   
   1.487 +syn keyword	cTag		KvDataTypes   
   1.488 +
   1.489 +" lang.inc
   1.490 +syn keyword	cFunction	LoadTranslations SetGlobalTransTarget GetClientLanguage GetServerLanguage
   1.491 +syn keyword	cFunction	GetLanguageCount GetLanguageInfo  
   1.492 +syn keyword	cConstant	LANG_SERVER   
   1.493 +
   1.494 +" logging.inc
   1.495 +syn keyword	cFunction	LogMessage LogMessageEx LogToFile LogToFileEx
   1.496 +syn keyword	cFunction	LogAction LogError AddGameLogHook RemoveGameLogHook
   1.497 +syn keyword	cTag		GameLogHook   
   1.498 +syn keyword	cForward	OnLogAction   
   1.499 +
   1.500 +" mapchooser.inc
   1.501 +syn keyword	cFunction	NominateMap GetExcludeMapList CanMapChooserStartVote InitiateMapChooserVote
   1.502 +syn keyword	cFunction	HasEndOfMapVoteFinished EndOfMapVoteEnabled  
   1.503 +syn keyword	cConstant	Nominate_Added Nominate_Replaced Nominate_AlreadyInVote Nominate_InvalidMap
   1.504 +syn keyword	cConstant	Nominate_VoteFull MapChange_Instant MapChange_RoundEnd MapChange_MapEnd
   1.505 +syn keyword	cTag		NominateResult MapChange  
   1.506 +syn keyword	cForward	OnNominationRemoved   
   1.507 +
   1.508 +" menus.inc
   1.509 +syn keyword	cFunction	CreateMenu DisplayMenu DisplayMenuAtItem AddMenuItem
   1.510 +syn keyword	cFunction	InsertMenuItem RemoveMenuItem RemoveAllMenuItems GetMenuItem
   1.511 +syn keyword	cFunction	GetMenuSelectionPosition GetMenuItemCount SetMenuPagination GetMenuPagination
   1.512 +syn keyword	cFunction	GetMenuStyle SetMenuTitle GetMenuTitle CreatePanelFromMenu
   1.513 +syn keyword	cFunction	GetMenuExitButton SetMenuExitButton GetMenuExitBackButton SetMenuExitBackButton
   1.514 +syn keyword	cFunction	CancelMenu GetMenuOptionFlags SetMenuOptionFlags IsVoteInProgress
   1.515 +syn keyword	cFunction	CancelVote VoteMenu VoteMenuToAll SetVoteResultCallback
   1.516 +syn keyword	cFunction	CheckVoteDelay IsClientInVotePool RedrawClientVoteMenu GetMenuStyleHandle
   1.517 +syn keyword	cFunction	CreatePanel CreateMenuEx GetClientMenu CancelClientMenu
   1.518 +syn keyword	cFunction	GetMaxPageItems GetPanelStyle SetPanelTitle DrawPanelItem
   1.519 +syn keyword	cFunction	DrawPanelText CanPanelDrawFlags SetPanelKeys SendPanelToClient
   1.520 +syn keyword	cFunction	GetPanelTextRemaining GetPanelCurrentKey SetPanelCurrentKey RedrawMenuItem
   1.521 +syn keyword	cFunction	InternalShowMenu GetMenuVoteInfo IsNewVoteAllowed 
   1.522 +syn keyword	cConstant	MenuStyle_Default MenuStyle_Valve MenuStyle_Radio MenuAction_Start
   1.523 +syn keyword	cConstant	MenuAction_Display MenuAction_Select MenuAction_Cancel MenuAction_End
   1.524 +syn keyword	cConstant	MenuAction_VoteEnd MenuAction_VoteStart MenuAction_VoteCancel MenuAction_DrawItem
   1.525 +syn keyword	cConstant	MenuAction_DisplayItem MENU_ACTIONS_DEFAULT MENU_ACTIONS_ALL MENU_NO_PAGINATION
   1.526 +syn keyword	cConstant	MENU_TIME_FOREVER ITEMDRAW_DEFAULT ITEMDRAW_DISABLED ITEMDRAW_RAWLINE
   1.527 +syn keyword	cConstant	ITEMDRAW_NOTEXT ITEMDRAW_SPACER ITEMDRAW_IGNORE ITEMDRAW_CONTROL
   1.528 +syn keyword	cConstant	MENUFLAG_BUTTON_EXIT MENUFLAG_BUTTON_EXITBACK MENUFLAG_NO_SOUND VOTEINFO_CLIENT_INDEX
   1.529 +syn keyword	cConstant	VOTEINFO_CLIENT_ITEM VOTEINFO_ITEM_INDEX VOTEINFO_ITEM_VOTES MenuSource_None
   1.530 +syn keyword	cConstant	MenuSource_External MenuSource_Normal MenuSource_RawPanel 
   1.531 +syn keyword	cTag		MenuStyle MenuAction MenuSource MenuHandler
   1.532 +syn keyword	cTag		VoteHandler   
   1.533 +
   1.534 +" nextmap.inc
   1.535 +syn keyword	cFunction	SetNextMap GetNextMap ForceChangeLevel GetMapHistorySize
   1.536 +syn keyword	cFunction	GetMapHistory   
   1.537 +
   1.538 +" profiler.inc
   1.539 +syn keyword	cFunction	CreateProfiler StartProfiling StopProfiling GetProfilerTime
   1.540 +
   1.541 +" regex.inc
   1.542 +syn keyword	cFunction	CompileRegex MatchRegex GetRegexSubString SimpleRegexMatch
   1.543 +syn keyword	cConstant	PCRE_CASELESS PCRE_MULTILINE PCRE_DOTALL PCRE_EXTENDED
   1.544 +syn keyword	cConstant	PCRE_UNGREEDY PCRE_UTF8 PCRE_NO_UTF8_CHECK REGEX_ERROR_NONE
   1.545 +syn keyword	cConstant	REGEX_ERROR_NOMATCH REGEX_ERROR_NULL REGEX_ERROR_BADOPTION REGEX_ERROR_BADMAGIC
   1.546 +syn keyword	cConstant	REGEX_ERROR_UNKNOWN_OPCODE REGEX_ERROR_NOMEMORY REGEX_ERROR_NOSUBSTRING REGEX_ERROR_MATCHLIMIT
   1.547 +syn keyword	cConstant	REGEX_ERROR_CALLOUT REGEX_ERROR_BADUTF8 REGEX_ERROR_BADUTF8_OFFSET REGEX_ERROR_PARTIAL
   1.548 +syn keyword	cConstant	REGEX_ERROR_BADPARTIAL REGEX_ERROR_INTERNAL REGEX_ERROR_BADCOUNT REGEX_ERROR_DFA_UITEM
   1.549 +syn keyword	cConstant	REGEX_ERROR_DFA_UCOND REGEX_ERROR_DFA_UMLIMIT REGEX_ERROR_DFA_WSSIZE REGEX_ERROR_DFA_RECURSE
   1.550 +syn keyword	cConstant	REGEX_ERROR_RECURSIONLIMIT REGEX_ERROR_NULLWSLIMIT REGEX_ERROR_BADNEWLINE 
   1.551 +syn keyword	cTag		RegexError   
   1.552 +
   1.553 +" sdktools.inc
   1.554 +syn keyword	cFunction	StartPrepSDKCall PrepSDKCall_SetVirtual PrepSDKCall_SetSignature PrepSDKCall_SetFromConf
   1.555 +syn keyword	cFunction	PrepSDKCall_SetReturnInfo PrepSDKCall_AddParameter EndPrepSDKCall SDKCall
   1.556 +syn keyword	cConstant	SDKCall_Static SDKCall_Entity SDKCall_Player SDKCall_GameRules
   1.557 +syn keyword	cConstant	SDKCall_EntityList SDKLibrary_Server SDKLibrary_Engine SDKConf_Virtual
   1.558 +syn keyword	cConstant	SDKConf_Signature SDKType_CBaseEntity SDKType_CBasePlayer SDKType_Vector
   1.559 +syn keyword	cConstant	SDKType_QAngle SDKType_PlainOldData SDKType_Float SDKType_Edict
   1.560 +syn keyword	cConstant	SDKType_String SDKType_Bool SDKPass_Pointer SDKPass_Plain
   1.561 +syn keyword	cConstant	SDKPass_ByValue SDKPass_ByRef VDECODE_FLAG_ALLOWNULL VDECODE_FLAG_ALLOWNOTINGAME
   1.562 +syn keyword	cConstant	VDECODE_FLAG_ALLOWWORLD VDECODE_FLAG_BYREF VENCODE_FLAG_COPYBACK 
   1.563 +syn keyword	cTag		SDKCallType SDKLibrary SDKFuncConfSource SDKType
   1.564 +syn keyword	cTag		SDKPassMethod   
   1.565 +
   1.566 +" sdktools_engine.inc
   1.567 +syn keyword	cFunction	SetClientViewEntity SetLightStyle GetClientEyePosition 
   1.568 +syn keyword	cConstant	MAX_LIGHTSTYLES   
   1.569 +
   1.570 +" sdktools_entinput.inc
   1.571 +syn keyword	cFunction	AcceptEntityInput SetVariantBool SetVariantString SetVariantInt
   1.572 +syn keyword	cFunction	SetVariantFloat SetVariantVector3D SetVariantPosVector3D SetVariantColor
   1.573 +syn keyword	cFunction	SetVariantEntity   
   1.574 +
   1.575 +" sdktools_entoutput.inc
   1.576 +syn keyword	cFunction	HookEntityOutput UnhookEntityOutput HookSingleEntityOutput UnhookSingleEntityOutput
   1.577 +syn keyword	cTag		EntityOutput   
   1.578 +
   1.579 +" sdktools_functions.inc
   1.580 +syn keyword	cFunction	RemovePlayerItem GivePlayerItem GetPlayerWeaponSlot IgniteEntity
   1.581 +syn keyword	cFunction	ExtinguishEntity TeleportEntity ForcePlayerSuicide SlapPlayer
   1.582 +syn keyword	cFunction	FindEntityByClassname GetClientEyeAngles CreateEntityByName DispatchSpawn
   1.583 +syn keyword	cFunction	DispatchKeyValue DispatchKeyValueFloat DispatchKeyValueVector GetClientAimTarget
   1.584 +syn keyword	cFunction	GetTeamCount GetTeamName GetTeamScore SetTeamScore
   1.585 +syn keyword	cFunction	GetTeamClientCount SetEntityModel GetPlayerDecalFile GetServerNetStats
   1.586 +syn keyword	cFunction	EquipPlayerWeapon ActivateEntity SetClientInfo 
   1.587 +
   1.588 +" sdktools_sound.inc
   1.589 +syn keyword	cFunction	PrefetchSound GetSoundDuration EmitAmbientSound FadeClientVolume
   1.590 +syn keyword	cFunction	StopSound EmitSound EmitSentence AddAmbientSoundHook
   1.591 +syn keyword	cFunction	AddNormalSoundHook RemoveAmbientSoundHook RemoveNormalSoundHook EmitSoundToClient
   1.592 +syn keyword	cFunction	EmitSoundToAll ATTN_TO_SNDLEVEL  
   1.593 +syn keyword	cConstant	SOUND_FROM_PLAYER SOUND_FROM_LOCAL_PLAYER SOUND_FROM_WORLD SNDVOL_NORMAL
   1.594 +syn keyword	cConstant	SNDPITCH_NORMAL SNDPITCH_LOW SNDPITCH_HIGH SNDATTN_NONE
   1.595 +syn keyword	cConstant	SNDATTN_NORMAL SNDATTN_STATIC SNDATTN_RICOCHET SNDATTN_IDLE
   1.596 +syn keyword	cTag		AmbientSHook NormalSHook  
   1.597 +
   1.598 +" sdktools_stocks.inc
   1.599 +syn keyword	cFunction	FindTeamByName   
   1.600 +
   1.601 +" sdktools_stringtables.inc
   1.602 +syn keyword	cFunction	FindStringTable GetNumStringTables GetStringTableNumStrings GetStringTableMaxStrings
   1.603 +syn keyword	cFunction	GetStringTableName FindStringIndex ReadStringTable GetStringTableDataLength
   1.604 +syn keyword	cFunction	GetStringTableData SetStringTableData AddToStringTable LockStringTables
   1.605 +syn keyword	cFunction	AddFileToDownloadsTable   
   1.606 +syn keyword	cConstant	INVALID_STRING_TABLE INVALID_STRING_INDEX  
   1.607 +
   1.608 +" sdktools_tempents.inc
   1.609 +syn keyword	cFunction	AddTempEntHook RemoveTempEntHook TE_Start TE_IsValidProp
   1.610 +syn keyword	cFunction	TE_WriteNum TE_ReadNum TE_WriteFloat TE_ReadFloat
   1.611 +syn keyword	cFunction	TE_WriteVector TE_ReadVector TE_WriteAngles TE_WriteFloatArray
   1.612 +syn keyword	cFunction	TE_Send TE_WriteEncodedEnt TE_SendToAll TE_SendToClient
   1.613 +syn keyword	cTag		TEHook   
   1.614 +
   1.615 +" sdktools_tempents_stocks.inc
   1.616 +syn keyword	cFunction	TE_SetupSparks TE_SetupSmoke TE_SetupDust TE_SetupMuzzleFlash
   1.617 +syn keyword	cFunction	TE_SetupMetalSparks TE_SetupEnergySplash TE_SetupArmorRicochet TE_SetupGlowSprite
   1.618 +syn keyword	cFunction	TE_SetupExplosion TE_SetupBloodSprite TE_SetupBeamRingPoint TE_SetupBeamPoints
   1.619 +syn keyword	cFunction	TE_SetupBeamLaser TE_SetupBeamRing TE_SetupBeamFollow 
   1.620 +syn keyword	cConstant	TE_EXPLFLAG_NONE TE_EXPLFLAG_NOADDITIVE TE_EXPLFLAG_NODLIGHTS TE_EXPLFLAG_NOSOUND
   1.621 +syn keyword	cConstant	TE_EXPLFLAG_NOPARTICLES TE_EXPLFLAG_DRAWALPHA TE_EXPLFLAG_ROTATE TE_EXPLFLAG_NOFIREBALL
   1.622 +syn keyword	cConstant	TE_EXPLFLAG_NOFIREBALLSMOKE FBEAM_STARTENTITY FBEAM_ENDENTITY FBEAM_FADEIN
   1.623 +syn keyword	cConstant	FBEAM_FADEOUT FBEAM_SINENOISE FBEAM_SOLID FBEAM_SHADEIN
   1.624 +syn keyword	cConstant	FBEAM_SHADEOUT FBEAM_ONLYNOISEONCE FBEAM_NOTILE FBEAM_USE_HITBOXES
   1.625 +syn keyword	cConstant	FBEAM_STARTVISIBLE FBEAM_ENDVISIBLE FBEAM_ISACTIVE FBEAM_FOREVER
   1.626 +syn keyword	cConstant	FBEAM_HALOBEAM   
   1.627 +
   1.628 +" sdktools_trace.inc
   1.629 +syn keyword	cFunction	TR_GetPointContents TR_GetPointContentsEnt TR_TraceRay TR_TraceHull
   1.630 +syn keyword	cFunction	TR_TraceRayFilter TR_TraceHullFilter TR_TraceRayEx TR_TraceHullEx
   1.631 +syn keyword	cFunction	TR_TraceRayFilterEx TR_TraceHullFilterEx TR_GetFraction TR_GetEndPosition
   1.632 +syn keyword	cFunction	TR_GetEntityIndex TR_DidHit TR_GetHitGroup TR_GetPlaneNormal
   1.633 +syn keyword	cConstant	CONTENTS_EMPTY CONTENTS_SOLID CONTENTS_WINDOW CONTENTS_AUX
   1.634 +syn keyword	cConstant	CONTENTS_GRATE CONTENTS_SLIME CONTENTS_WATER CONTENTS_MIST
   1.635 +syn keyword	cConstant	CONTENTS_OPAQUE LAST_VISIBLE_CONTENTS ALL_VISIBLE_CONTENTS CONTENTS_TESTFOGVOLUME
   1.636 +syn keyword	cConstant	CONTENTS_UNUSED5 CONTENTS_UNUSED6 CONTENTS_TEAM1 CONTENTS_TEAM2
   1.637 +syn keyword	cConstant	CONTENTS_IGNORE_NODRAW_OPAQUE CONTENTS_MOVEABLE CONTENTS_AREAPORTAL CONTENTS_PLAYERCLIP
   1.638 +syn keyword	cConstant	CONTENTS_MONSTERCLIP CONTENTS_CURRENT_0 CONTENTS_CURRENT_90 CONTENTS_CURRENT_180
   1.639 +syn keyword	cConstant	CONTENTS_CURRENT_270 CONTENTS_CURRENT_UP CONTENTS_CURRENT_DOWN CONTENTS_ORIGIN
   1.640 +syn keyword	cConstant	CONTENTS_MONSTER CONTENTS_DEBRIS CONTENTS_DETAIL CONTENTS_TRANSLUCENT
   1.641 +syn keyword	cConstant	CONTENTS_LADDER CONTENTS_HITBOX MASK_ALL MASK_SOLID
   1.642 +syn keyword	cConstant	MASK_PLAYERSOLID MASK_NPCSOLID MASK_WATER MASK_OPAQUE
   1.643 +syn keyword	cConstant	MASK_OPAQUE_AND_NPCS MASK_VISIBLE MASK_VISIBLE_AND_NPCS MASK_SHOT
   1.644 +syn keyword	cConstant	MASK_SHOT_HULL MASK_SHOT_PORTAL MASK_SOLID_BRUSHONLY MASK_PLAYERSOLID_BRUSHONLY
   1.645 +syn keyword	cConstant	MASK_NPCSOLID_BRUSHONLY MASK_NPCWORLDSTATIC MASK_SPLITAREAPORTAL RayType_EndPoint
   1.646 +syn keyword	cConstant	RayType_Infinite   
   1.647 +syn keyword	cTag		RayType TraceEntityFilter  
   1.648 +
   1.649 +" sdktools_voice.inc
   1.650 +syn keyword	cFunction	SetClientListeningFlags GetClientListeningFlags SetClientListening GetClientListening
   1.651 +syn keyword	cConstant	VOICE_NORMAL VOICE_MUTED VOICE_SPEAKALL VOICE_LISTENALL
   1.652 +syn keyword	cConstant	VOICE_TEAM VOICE_LISTENTEAM  
   1.653 +
   1.654 +" sorting.inc
   1.655 +syn keyword	cFunction	SortIntegers SortFloats SortStrings SortCustom1D
   1.656 +syn keyword	cFunction	SortCustom2D SortADTArray SortADTArrayCustom 
   1.657 +syn keyword	cConstant	Sort_Ascending Sort_Descending Sort_Random 
   1.658 +syn keyword	cTag		SortOrder SortType SortFunc1D SortFunc2D
   1.659 +syn keyword	cTag		SortFuncADTArray   
   1.660 +
   1.661 +" sourcemod.inc
   1.662 +syn keyword	cFunction	GetMyHandle GetPluginIterator MorePlugins ReadPlugin
   1.663 +syn keyword	cFunction	GetPluginStatus GetPluginFilename IsPluginDebugging GetPluginInfo
   1.664 +syn keyword	cFunction	FindPluginByNumber SetFailState ThrowError GetTime
   1.665 +syn keyword	cFunction	FormatTime LoadGameConfigFile GameConfGetOffset GameConfGetKeyValue
   1.666 +syn keyword	cFunction	GetSysTickCount AutoExecConfig MarkNativeAsOptional RegPluginLibrary
   1.667 +syn keyword	cFunction	LibraryExists GetExtensionFileStatus ReadMapList SetMapListCompatBind
   1.668 +syn keyword	cConstant	myinfo MAPLIST_FLAG_MAPSFOLDER MAPLIST_FLAG_CLEARARRAY MAPLIST_FLAG_NO_DEFAULT
   1.669 +syn keyword	cTag		Plugin   
   1.670 +syn keyword	cForward	OnPluginStart AskPluginLoad OnPluginEnd OnPluginPauseChange
   1.671 +syn keyword	cForward	OnGameFrame OnMapStart OnMapEnd OnConfigsExecuted
   1.672 +syn keyword	cForward	OnAutoConfigsBuffered OnServerCfg OnAllPluginsLoaded OnLibraryAdded
   1.673 +syn keyword	cForward	OnLibraryRemoved OnClientFloodCheck OnClientFloodResult 
   1.674 +
   1.675 +" string.inc
   1.676 +syn keyword	cFunction	strlen StrContains strcmp strncmp
   1.677 +syn keyword	cFunction	StrCompare StrEqual strcopy StrCopy
   1.678 +syn keyword	cFunction	Format FormatEx VFormat StringToInt
   1.679 +syn keyword	cFunction	StringToIntEx IntToString StringToFloat StringToFloatEx
   1.680 +syn keyword	cFunction	FloatToString BreakString StrBreak TrimString
   1.681 +syn keyword	cFunction	SplitString ReplaceString ReplaceStringEx GetCharBytes
   1.682 +syn keyword	cFunction	IsCharAlpha IsCharNumeric IsCharSpace IsCharMB
   1.683 +syn keyword	cFunction	IsCharUpper IsCharLower StripQuotes CharToUpper
   1.684 +syn keyword	cFunction	CharToLower FindCharInString StrCat ExplodeString
   1.685 +syn keyword	cFunction	ImplodeStrings   
   1.686 +
   1.687 +" textparse.inc
   1.688 +syn keyword	cFunction	SMC_CreateParser SMC_ParseFile SMC_GetErrorString SMC_SetParseStart
   1.689 +syn keyword	cFunction	SMC_SetParseEnd SMC_SetReaders SMC_SetRawLine 
   1.690 +syn keyword	cConstant	SMCParse_Continue SMCParse_Halt SMCParse_HaltFail SMCError_Okay
   1.691 +syn keyword	cConstant	SMCError_StreamOpen SMCError_StreamError SMCError_Custom SMCError_InvalidSection1
   1.692 +syn keyword	cConstant	SMCError_InvalidSection2 SMCError_InvalidSection3 SMCError_InvalidSection4 SMCError_InvalidSection5
   1.693 +syn keyword	cConstant	SMCError_InvalidTokens SMCError_TokenOverflow SMCError_InvalidProperty1 
   1.694 +syn keyword	cTag		SMCResult SMCError SMC_ParseStart SMC_ParseEnd
   1.695 +syn keyword	cTag		SMC_NewSection SMC_KeyValue SMC_EndSection SMC_RawLine
   1.696 +
   1.697 +" tf2.inc
   1.698 +syn keyword	cFunction	TF2_RespawnPlayer TF2_DisguisePlayer TF2_RemovePlayerDisguise TF2_GetResourceEntity
   1.699 +syn keyword	cFunction	TF2_GetClass   
   1.700 +syn keyword	cConstant	TFClass_Unknown TFClass_Scout TFClass_Sniper TFClass_Soldier
   1.701 +syn keyword	cConstant	TFClass_DemoMan TFClass_Medic TFClass_Heavy TFClass_Pyro
   1.702 +syn keyword	cConstant	TFClass_Spy TFClass_Engineer TFTeam_Unassigned TFTeam_Spectator
   1.703 +syn keyword	cConstant	TFTeam_Red TFTeam_Blue  
   1.704 +syn keyword	cTag		TFClassType TFTeam  
   1.705 +syn keyword	cForward	TF2_CalcIsAttackCritical   
   1.706 +
   1.707 +" tf2_stocks.inc
   1.708 +syn keyword	cFunction	TF2_GetPlayerClass TF2_SetPlayerClass TF2_GetPlayerResourceData TF2_SetPlayerResourceData
   1.709 +syn keyword	cFunction	TF2_RemoveWeaponSlot TF2_RemoveAllWeapons  
   1.710 +syn keyword	cConstant	TFResource_Ping TFResource_Score TFResource_Deaths TFResource_TotalScore
   1.711 +syn keyword	cConstant	TFResource_Captures TFResource_Defenses TFResource_Dominations TFResource_Revenge
   1.712 +syn keyword	cConstant	TFResource_BuildingsDestroyed TFResource_Headshots TFResource_Backstabs TFResource_HealPoints
   1.713 +syn keyword	cConstant	TFResource_Invulns TFResource_Teleports TFResource_ResupplyPoints TFResource_KillAssists
   1.714 +syn keyword	cConstant	TFResource_MaxHealth TFResource_PlayerClass  
   1.715 +syn keyword	cTag		TFResourceType   
   1.716 +
   1.717 +" timers.inc
   1.718 +syn keyword	cFunction	CreateTimer KillTimer TriggerTimer GetTickedTime
   1.719 +syn keyword	cFunction	GetMapTimeLeft GetMapTimeLimit ExtendMapTimeLimit GetTickInterval
   1.720 +syn keyword	cFunction	IsServerProcessing CreateDataTimer  
   1.721 +syn keyword	cConstant	TIMER_REPEAT TIMER_FLAG_NO_MAPCHANGE TIMER_HNDL_CLOSE TIMER_DATA_HNDL_CLOSE
   1.722 +syn keyword	cTag		Timer   
   1.723 +syn keyword	cForward	OnMapTimeLeftChanged   
   1.724 +
   1.725 +" topmenus.inc
   1.726 +syn keyword	cFunction	CreateTopMenu LoadTopMenuConfig AddToTopMenu GetTopMenuInfoString
   1.727 +syn keyword	cFunction	GetTopMenuObjName RemoveFromTopMenu DisplayTopMenu FindTopMenuCategory
   1.728 +syn keyword	cConstant	TopMenuAction_DisplayOption TopMenuAction_DisplayTitle TopMenuAction_SelectOption TopMenuObject_Category
   1.729 +syn keyword	cConstant	TopMenuObject_Item TopMenuPosition_Start TopMenuPosition_LastRoot TopMenuPosition_LastCategory
   1.730 +syn keyword	cConstant	INVALID_TOPMENUOBJECT   
   1.731 +syn keyword	cTag		TopMenuAction TopMenuObjectType TopMenuPosition TopMenuObject
   1.732 +syn keyword	cTag		TopMenuHandler   
   1.733 +
   1.734 +" usermessages.inc
   1.735 +syn keyword	cFunction	GetUserMessageId GetUserMessageName StartMessage StartMessageEx
   1.736 +syn keyword	cFunction	EndMessage HookUserMessage UnhookUserMessage StartMessageAll
   1.737 +syn keyword	cFunction	StartMessageOne   
   1.738 +syn keyword	cConstant	INVALID_MESSAGE_ID USERMSG_RELIABLE USERMSG_INITMSG USERMSG_BLOCKHOOKS
   1.739 +syn keyword	cTag		UserMsg MsgHook MsgPostHook 
   1.740 +
   1.741 +" vector.inc
   1.742 +syn keyword	cFunction	GetVectorLength GetVectorDistance GetVectorDotProduct GetVectorCrossProduct
   1.743 +syn keyword	cFunction	NormalizeVector GetAngleVectors GetVectorAngles GetVectorVectors
   1.744 +syn keyword	cFunction	AddVectors SubtractVectors ScaleVector NegateVector
   1.745 +syn keyword	cFunction	MakeVectorFromPoints   
   1.746 +
   1.747 +" version.inc
   1.748 +syn keyword	cConstant	SOURCEMOD_V_MAJOR SOURCEMOD_V_MINOR SOURCEMOD_V_RELEASE SOURCEMOD_VERSION
   1.749 +" Accept %: for # (C99)
   1.750 +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
   1.751 +syn match	cPreCondit	display "^\s*\(%:\|#\)\s*\(else\|endif\)\>"
   1.752 +if !exists("c_no_if0")
   1.753 +  if !exists("c_no_if0_fold")
   1.754 +    syn region	cCppOut		start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2 fold
   1.755 +  else
   1.756 +    syn region	cCppOut		start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2
   1.757 +  endif
   1.758 +  syn region	cCppOut2	contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=cSpaceError,cCppSkip
   1.759 +  syn region	cCppSkip	contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip
   1.760 +endif
   1.761 +syn region	cIncluded	display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
   1.762 +syn match	cIncluded	display contained "<[^>]*>"
   1.763 +syn match	cInclude	display "^\s*\(%:\|#\)\s*\(include\>\|tryinclude\>\)\s*["<]" contains=cIncluded
   1.764 +"syn match cLineSkip	"\\$"
   1.765 +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
   1.766 +syn region	cDefine		start="^\s*\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" end="//"me=s-1 keepend contains=ALLBUT,@cPreProcGroup,@Spell
   1.767 +syn region	cPreProc	start="^\s*\(%:\|#\)\s*\(assert\>\|emit\>\|endinput\>\|endscript\>\|pragma\>\|line\>\|section\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
   1.768 +
   1.769 +" Highlight User Labels
   1.770 +syn cluster	cMultiGroup	contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cCppOut,cCppOut2,cCppSkip,cFormat,cNumber,cFloat,cNumbersCom,cCppParen,cCppBracket,cCppString
   1.771 +syn region	cMulti		transparent start='?' skip='::' end=':' contains=ALLBUT,@cMultiGroup,@Spell
   1.772 +" Avoid matching foo::bar() in C++ by requiring that the next char is not ':'
   1.773 +syn cluster	cLabelGroup	contains=cUserLabel
   1.774 +syn match	cUserCont	display "^\s*\I\i*\s*:$" contains=@cLabelGroup
   1.775 +syn match	cUserCont	display ";\s*\I\i*\s*:$" contains=@cLabelGroup
   1.776 +syn match	cUserCont	display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
   1.777 +syn match	cUserCont	display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
   1.778 +
   1.779 +syn match	cUserLabel	display "\I\i*" contained
   1.780 +
   1.781 +" C++ extentions
   1.782 +syn keyword cppStatement	new decl
   1.783 +syn keyword cppAccess		public
   1.784 +syn keyword cppOperator		operator
   1.785 +
   1.786 +if exists("c_minlines")
   1.787 +  let b:c_minlines = c_minlines
   1.788 +else
   1.789 +  if !exists("c_no_if0")
   1.790 +    let b:c_minlines = 50	" #if 0 constructs can be long
   1.791 +  else
   1.792 +    let b:c_minlines = 15	" mostly for () constructs
   1.793 +  endif
   1.794 +endif
   1.795 +exec "syn sync ccomment cComment minlines=" . b:c_minlines
   1.796 +
   1.797 +" Define the default highlighting.
   1.798 +" Only used when an item doesn't have highlighting yet
   1.799 +hi def link cFormat		cSpecial
   1.800 +hi def link cCppString		cString
   1.801 +hi def link cCommentL		cComment
   1.802 +hi def link cCommentStart	cComment
   1.803 +hi def link cLabel		Label
   1.804 +hi def link cUserLabel		Label
   1.805 +hi def link cConditional	Conditional
   1.806 +hi def link cRepeat		Repeat
   1.807 +hi def link cCharacter		Character
   1.808 +hi def link cSpecialCharacter	cSpecial
   1.809 +hi def link cNumber		Number
   1.810 +hi def link cFloat		Float
   1.811 +hi def link cParenError		cError
   1.812 +hi def link cErrInParen		cError
   1.813 +hi def link cErrInBracket	cError
   1.814 +hi def link cCommentError	cError
   1.815 +hi def link cCommentStartError	cError
   1.816 +hi def link cSpaceError		cError
   1.817 +hi def link cSpecialError	cError
   1.818 +hi def link cOperator		Operator
   1.819 +hi def link cStructure		Structure
   1.820 +hi def link cStorageClass	StorageClass
   1.821 +hi def link cInclude		Include
   1.822 +hi def link cPreProc		PreProc
   1.823 +hi def link cDefine		Macro
   1.824 +hi def link cIncluded		cString
   1.825 +hi def link cError		Error
   1.826 +hi def link cStatement		Statement
   1.827 +hi def link cPreCondit		PreCondit
   1.828 +hi def link cTag 		Type
   1.829 +hi def link cConstant		Constant
   1.830 +hi def link cCommentString	cString
   1.831 +hi def link cComment2String	cString
   1.832 +hi def link cCommentSkip	cComment
   1.833 +hi def link cString		String
   1.834 +hi def link cComment		Comment
   1.835 +hi def link cSpecial		SpecialChar
   1.836 +hi def link cTodo		Todo
   1.837 +hi def link cCppSkip		cCppOut
   1.838 +hi def link cCppOut2		cCppOut
   1.839 +hi def link cCppOut		Comment
   1.840 +
   1.841 +hi def link cppAccess		cppStatement
   1.842 +hi def link cppOperator		Operator
   1.843 +hi def link cppStatement	Statement
   1.844 +
   1.845 +hi def link cFunction   	Function
   1.846 +hi def link cForward    	Function
   1.847 +
   1.848 +let b:current_syntax = "sourcepawn"
   1.849 +
   1.850 +" vim: ts=8