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

changeset 7701
25f42e208e08
parent 7547
21b0534faebc
child 7983
54c5cfbb1e29
equal deleted inserted replaced
7700:a3cf077a8db3 7701:25f42e208e08
3 pygments.lexers.c_like 3 pygments.lexers.c_like
4 ~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for other C-like languages. 6 Lexers for other C-like languages.
7 7
8 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2020 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
170 'unichar', 'int64'), suffix=r'\b'), 170 'unichar', 'int64'), suffix=r'\b'),
171 Keyword.Type), 171 Keyword.Type),
172 (r'(class)(\s+)', bygroups(Keyword, Text), 'classname'), 172 (r'(class)(\s+)', bygroups(Keyword, Text), 'classname'),
173 (r'(null|value|this)\b', Name.Builtin), 173 (r'(null|value|this)\b', Name.Builtin),
174 inherit, 174 inherit,
175 ], 175 ]
176 'classname': [
177 (r'[a-zA-Z_]\w*', Name.Class, '#pop'),
178 # template specification
179 (r'\s*(?=>)', Text, '#pop'),
180 ],
181 } 176 }
182 177
183 178
184 class ValaLexer(RegexLexer): 179 class ValaLexer(RegexLexer):
185 """ 180 """

eric ide

mercurial