84 (r'^\s*#endif.*?(?<!\\)\n', Comment.Preproc, '#pop'), |
84 (r'^\s*#endif.*?(?<!\\)\n', Comment.Preproc, '#pop'), |
85 (r'.*?\n', Comment), |
85 (r'.*?\n', Comment), |
86 ] |
86 ] |
87 } |
87 } |
88 |
88 |
89 SM_TYPES = set(('Action', 'bool', 'Float', 'Plugin', 'String', 'any', |
89 SM_TYPES = {'Action', 'bool', 'Float', 'Plugin', 'String', 'any', |
90 'AdminFlag', 'OverrideType', 'OverrideRule', 'ImmunityType', |
90 'AdminFlag', 'OverrideType', 'OverrideRule', 'ImmunityType', |
91 'GroupId', 'AdminId', 'AdmAccessMode', 'AdminCachePart', |
91 'GroupId', 'AdminId', 'AdmAccessMode', 'AdminCachePart', |
92 'CookieAccess', 'CookieMenu', 'CookieMenuAction', 'NetFlow', |
92 'CookieAccess', 'CookieMenu', 'CookieMenuAction', 'NetFlow', |
93 'ConVarBounds', 'QueryCookie', 'ReplySource', |
93 'ConVarBounds', 'QueryCookie', 'ReplySource', |
94 'ConVarQueryResult', 'ConVarQueryFinished', 'Function', |
94 'ConVarQueryResult', 'ConVarQueryFinished', 'Function', |
95 'Action', 'Identity', 'PluginStatus', 'PluginInfo', 'DBResult', |
95 'Action', 'Identity', 'PluginStatus', 'PluginInfo', 'DBResult', |
96 'DBBindType', 'DBPriority', 'PropType', 'PropFieldType', |
96 'DBBindType', 'DBPriority', 'PropType', 'PropFieldType', |
97 'MoveType', 'RenderMode', 'RenderFx', 'EventHookMode', |
97 'MoveType', 'RenderMode', 'RenderFx', 'EventHookMode', |
98 'EventHook', 'FileType', 'FileTimeMode', 'PathType', |
98 'EventHook', 'FileType', 'FileTimeMode', 'PathType', |
99 'ParamType', 'ExecType', 'DialogType', 'Handle', 'KvDataTypes', |
99 'ParamType', 'ExecType', 'DialogType', 'Handle', 'KvDataTypes', |
100 'NominateResult', 'MapChange', 'MenuStyle', 'MenuAction', |
100 'NominateResult', 'MapChange', 'MenuStyle', 'MenuAction', |
101 'MenuSource', 'RegexError', 'SDKCallType', 'SDKLibrary', |
101 'MenuSource', 'RegexError', 'SDKCallType', 'SDKLibrary', |
102 'SDKFuncConfSource', 'SDKType', 'SDKPassMethod', 'RayType', |
102 'SDKFuncConfSource', 'SDKType', 'SDKPassMethod', 'RayType', |
103 'TraceEntityFilter', 'ListenOverride', 'SortOrder', 'SortType', |
103 'TraceEntityFilter', 'ListenOverride', 'SortOrder', 'SortType', |
104 'SortFunc2D', 'APLRes', 'FeatureType', 'FeatureStatus', |
104 'SortFunc2D', 'APLRes', 'FeatureType', 'FeatureStatus', |
105 'SMCResult', 'SMCError', 'TFClassType', 'TFTeam', 'TFCond', |
105 'SMCResult', 'SMCError', 'TFClassType', 'TFTeam', 'TFCond', |
106 'TFResourceType', 'Timer', 'TopMenuAction', 'TopMenuObjectType', |
106 'TFResourceType', 'Timer', 'TopMenuAction', 'TopMenuObjectType', |
107 'TopMenuPosition', 'TopMenuObject', 'UserMsg')) |
107 'TopMenuPosition', 'TopMenuObject', 'UserMsg'} |
108 |
108 |
109 def __init__(self, **options): |
109 def __init__(self, **options): |
110 self.smhighlighting = get_bool_opt(options, |
110 self.smhighlighting = get_bool_opt(options, |
111 'sourcemod', True) |
111 'sourcemod', True) |
112 |
112 |