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

changeset 7547
21b0534faebc
parent 6942
2602857055c5
child 7701
25f42e208e08
equal deleted inserted replaced
7546:bf5f777260a6 7547:21b0534faebc
3 pygments.lexers.d 3 pygments.lexers.d
4 ~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~
5 5
6 Lexers for D languages. 6 Lexers for D 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, include, words 12 from pygments.lexer import RegexLexer, include, words
13 from pygments.token import Text, Comment, Keyword, Name, String, \ 13 from pygments.token import Text, Comment, Keyword, Name, String, \
45 'foreach', 'for', 'function', 'goto', 'if', 'immutable', 'import', 45 'foreach', 'for', 'function', 'goto', 'if', 'immutable', 'import',
46 'interface', 'invariant', 'inout', 'in', 'is', 'lazy', 'mixin', 46 'interface', 'invariant', 'inout', 'in', 'is', 'lazy', 'mixin',
47 'module', 'new', 'nothrow', 'out', 'override', 'package', 'pragma', 47 'module', 'new', 'nothrow', 'out', 'override', 'package', 'pragma',
48 'private', 'protected', 'public', 'pure', 'ref', 'return', 'scope', 48 'private', 'protected', 'public', 'pure', 'ref', 'return', 'scope',
49 'shared', 'static', 'struct', 'super', 'switch', 'synchronized', 49 'shared', 'static', 'struct', 'super', 'switch', 'synchronized',
50 'template', 'this', 'throw', 'try', 'typedef', 'typeid', 'typeof', 50 'template', 'this', 'throw', 'try', 'typeid', 'typeof',
51 'union', 'unittest', 'version', 'volatile', 'while', 'with', 51 'union', 'unittest', 'version', 'volatile', 'while', 'with',
52 '__gshared', '__traits', '__vector', '__parameters'), 52 '__gshared', '__traits', '__vector', '__parameters'),
53 suffix=r'\b'), 53 suffix=r'\b'),
54 Keyword), 54 Keyword),
55 (words((
56 # Removed in 2.072
57 'typedef', ),
58 suffix=r'\b'),
59 Keyword.Removed),
55 (words(( 60 (words((
56 'bool', 'byte', 'cdouble', 'cent', 'cfloat', 'char', 'creal', 61 'bool', 'byte', 'cdouble', 'cent', 'cfloat', 'char', 'creal',
57 'dchar', 'double', 'float', 'idouble', 'ifloat', 'int', 'ireal', 62 'dchar', 'double', 'float', 'idouble', 'ifloat', 'int', 'ireal',
58 'long', 'real', 'short', 'ubyte', 'ucent', 'uint', 'ulong', 63 'long', 'real', 'short', 'ubyte', 'ucent', 'uint', 'ulong',
59 'ushort', 'void', 'wchar'), suffix=r'\b'), 64 'ushort', 'void', 'wchar'), suffix=r'\b'),
60 Keyword.Type), 65 Keyword.Type),
61 (r'(false|true|null)\b', Keyword.Constant), 66 (r'(false|true|null)\b', Keyword.Constant),
62 (words(( 67 (words((
63 '__FILE__', '__MODULE__', '__LINE__', '__FUNCTION__', '__PRETTY_FUNCTION__' 68 '__FILE__', '__FILE_FULL_PATH__', '__MODULE__', '__LINE__', '__FUNCTION__',
64 '', '__DATE__', '__EOF__', '__TIME__', '__TIMESTAMP__', '__VENDOR__', 69 '__PRETTY_FUNCTION__', '__DATE__', '__EOF__', '__TIME__', '__TIMESTAMP__',
65 '__VERSION__'), suffix=r'\b'), 70 '__VENDOR__', '__VERSION__'), suffix=r'\b'),
66 Keyword.Pseudo), 71 Keyword.Pseudo),
67 (r'macro\b', Keyword.Reserved), 72 (r'macro\b', Keyword.Reserved),
68 (r'(string|wstring|dstring|size_t|ptrdiff_t)\b', Name.Builtin), 73 (r'(string|wstring|dstring|size_t|ptrdiff_t)\b', Name.Builtin),
69 # FloatLiteral 74 # FloatLiteral
70 # -- HexFloat 75 # -- HexFloat

eric ide

mercurial