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-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 import re |
12 import re |
13 |
13 |
64 '@end', '@property', '@synthesize', '__bridge', '__bridge_transfer', |
64 '@end', '@property', '@synthesize', '__bridge', '__bridge_transfer', |
65 '__autoreleasing', '__block', '__weak', '__strong', 'weak', 'strong', |
65 '__autoreleasing', '__block', '__weak', '__strong', 'weak', 'strong', |
66 'copy', 'retain', 'assign', 'unsafe_unretained', 'atomic', 'nonatomic', |
66 'copy', 'retain', 'assign', 'unsafe_unretained', 'atomic', 'nonatomic', |
67 'readonly', 'readwrite', 'setter', 'getter', 'typeof', 'in', |
67 'readonly', 'readwrite', 'setter', 'getter', 'typeof', 'in', |
68 'out', 'inout', 'release', 'class', '@dynamic', '@optional', |
68 'out', 'inout', 'release', 'class', '@dynamic', '@optional', |
69 '@required', '@autoreleasepool'), suffix=r'\b'), |
69 '@required', '@autoreleasepool', '@import'), suffix=r'\b'), |
70 Keyword), |
70 Keyword), |
71 (words(('id', 'instancetype', 'Class', 'IMP', 'SEL', 'BOOL', |
71 (words(('id', 'instancetype', 'Class', 'IMP', 'SEL', 'BOOL', |
72 'IBOutlet', 'IBAction', 'unichar'), suffix=r'\b'), |
72 'IBOutlet', 'IBAction', 'unichar'), suffix=r'\b'), |
73 Keyword.Type), |
73 Keyword.Type), |
74 (r'@(true|false|YES|NO)\n', Name.Builtin), |
74 (r'@(true|false|YES|NO)\n', Name.Builtin), |