ThirdParty/Pygments/pygments/lexers/chapel.py

changeset 6651
e8f3b5568b21
parent 5713
6762afd9f963
equal deleted inserted replaced
6650:1dd52aa8897c 6651:e8f3b5568b21
40 Keyword.Declaration), 40 Keyword.Declaration),
41 (r'(false|nil|true)\b', Keyword.Constant), 41 (r'(false|nil|true)\b', Keyword.Constant),
42 (r'(bool|complex|imag|int|opaque|range|real|string|uint)\b', 42 (r'(bool|complex|imag|int|opaque|range|real|string|uint)\b',
43 Keyword.Type), 43 Keyword.Type),
44 (words(( 44 (words((
45 'align', 'as', 'atomic', 'begin', 'break', 'by', 'cobegin', 45 'align', 'as', 'atomic',
46 'coforall', 'continue', 'delete', 'dmapped', 'do', 'domain', 46 'begin', 'borrowed', 'break', 'by',
47 'else', 'enum', 'except', 'export', 'extern', 'for', 'forall', 47 'catch', 'cobegin', 'coforall', 'continue',
48 'if', 'index', 'inline', 'iter', 'label', 'lambda', 'let', 48 'delete', 'dmapped', 'do', 'domain',
49 'local', 'new', 'noinit', 'on', 'only', 'otherwise', 'pragma', 49 'else', 'enum', 'except', 'export', 'extern',
50 'private', 'public', 'reduce', 'require', 'return', 'scan', 50 'for', 'forall',
51 'select', 'serial', 'single', 'sparse', 'subdomain', 'sync', 51 'if', 'index', 'inline',
52 'then', 'use', 'when', 'where', 'while', 'with', 'yield', 52 'label', 'lambda', 'let', 'local',
53 'new', 'noinit',
54 'on', 'only', 'otherwise', 'override', 'owned',
55 'pragma', 'private', 'prototype', 'public',
56 'reduce', 'require', 'return',
57 'scan', 'select', 'serial', 'shared', 'single', 'sparse', 'subdomain', 'sync',
58 'then', 'throw', 'throws', 'try',
59 'unmanaged', 'use',
60 'when', 'where', 'while', 'with',
61 'yield',
53 'zip'), suffix=r'\b'), 62 'zip'), suffix=r'\b'),
54 Keyword), 63 Keyword),
64 (r'(iter)((?:\s)+)', bygroups(Keyword, Text), 'procname'),
55 (r'(proc)((?:\s)+)', bygroups(Keyword, Text), 'procname'), 65 (r'(proc)((?:\s)+)', bygroups(Keyword, Text), 'procname'),
56 (r'(class|module|record|union)(\s+)', bygroups(Keyword, Text), 66 (r'(class|module|record|union)(\s+)', bygroups(Keyword, Text),
57 'classname'), 67 'classname'),
58 68
59 # imaginary integers 69 # imaginary integers
94 ], 104 ],
95 'classname': [ 105 'classname': [
96 (r'[a-zA-Z_][\w$]*', Name.Class, '#pop'), 106 (r'[a-zA-Z_][\w$]*', Name.Class, '#pop'),
97 ], 107 ],
98 'procname': [ 108 'procname': [
99 (r'([a-zA-Z_][\w$]+|\~[a-zA-Z_][\w$]+|[+*/!~%<>=&^|\-]{1,2})', 109 (r'([a-zA-Z_][.\w$]*|\~[a-zA-Z_][.\w$]*|[+*/!~%<>=&^|\-]{1,2})',
100 Name.Function, '#pop'), 110 Name.Function, '#pop'),
101 ], 111 ],
102 } 112 }

eric ide

mercurial