eric6/ThirdParty/Pygments/pygments/lexers/pawn.py

changeset 7547
21b0534faebc
parent 6942
2602857055c5
child 7701
25f42e208e08
equal deleted inserted replaced
7546:bf5f777260a6 7547:21b0534faebc
3 pygments.lexers.pawn 3 pygments.lexers.pawn
4 ~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for the Pawn languages. 6 Lexers for the Pawn languages.
7 7
8 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 from pygments.lexer import RegexLexer 12 from pygments.lexer import RegexLexer
13 from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ 13 from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
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

eric ide

mercurial