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

changeset 7983
54c5cfbb1e29
parent 7701
25f42e208e08
equal deleted inserted replaced
7982:48d210e41c65 7983:54c5cfbb1e29
3 pygments.lexers.objective 3 pygments.lexers.objective
4 ~~~~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for Objective-C family languages. 6 Lexers for Objective-C family languages.
7 7
8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2021 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 import re 12 import re
13 13
259 'root': [ 259 'root': [
260 (r'(%subclass)(\s+)', bygroups(Keyword, Text), 260 (r'(%subclass)(\s+)', bygroups(Keyword, Text),
261 'logos_classname'), 261 'logos_classname'),
262 (r'(%hook|%group)(\s+)([a-zA-Z$_][\w$]+)', 262 (r'(%hook|%group)(\s+)([a-zA-Z$_][\w$]+)',
263 bygroups(Keyword, Text, Name.Class)), 263 bygroups(Keyword, Text, Name.Class)),
264 (r'(%config)(\s*\(\s*)(\w+)(\s*=\s*)(.*?)(\s*\)\s*)', 264 (r'(%config)(\s*\(\s*)(\w+)(\s*=)(.*?)(\)\s*)',
265 bygroups(Keyword, Text, Name.Variable, Text, String, Text)), 265 bygroups(Keyword, Text, Name.Variable, Text, String, Text)),
266 (r'(%ctor)(\s*)(\{)', bygroups(Keyword, Text, Punctuation), 266 (r'(%ctor)(\s*)(\{)', bygroups(Keyword, Text, Punctuation),
267 'function'), 267 'function'),
268 (r'(%new)(\s*)(\()(\s*.*?\s*)(\))', 268 (r'(%new)(\s*)(\()(.*?)(\))',
269 bygroups(Keyword, Text, Keyword, String, Keyword)), 269 bygroups(Keyword, Text, Keyword, String, Keyword)),
270 (r'(\s*)(%end)(\s*)', bygroups(Text, Keyword, Text)), 270 (r'(\s*)(%end)(\s*)', bygroups(Text, Keyword, Text)),
271 inherit, 271 inherit,
272 ], 272 ],
273 } 273 }

eric ide

mercurial