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

changeset 7701
25f42e208e08
parent 7547
21b0534faebc
child 7983
54c5cfbb1e29
equal deleted inserted replaced
7700:a3cf077a8db3 7701:25f42e208e08
3 pygments.lexers.nimrod 3 pygments.lexers.nimrod
4 ~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexer for the Nim language (formerly known as Nimrod). 6 Lexer for the Nim language (formerly known as Nimrod).
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
41 newWords.append(new) 41 newWords.append(new)
42 new = "" 42 new = ""
43 return "|".join(newWords) 43 return "|".join(newWords)
44 44
45 keywords = [ 45 keywords = [
46 'addr', 'and', 'as', 'asm', 'atomic', 'bind', 'block', 'break', 'case', 46 'addr', 'and', 'as', 'asm', 'bind', 'block', 'break', 'case',
47 'cast', 'concept', 'const', 'continue', 'converter', 'defer', 'discard', 47 'cast', 'concept', 'const', 'continue', 'converter', 'defer', 'discard',
48 'distinct', 'div', 'do', 'elif', 'else', 'end', 'enum', 'except', 48 'distinct', 'div', 'do', 'elif', 'else', 'end', 'enum', 'except',
49 'export', 'finally', 'for', 'func', 'if', 'in', 'yield', 'interface', 49 'export', 'finally', 'for', 'func', 'if', 'in', 'yield', 'interface',
50 'is', 'isnot', 'iterator', 'let', 'macro', 'method', 'mixin', 'mod', 50 'is', 'isnot', 'iterator', 'let', 'macro', 'method', 'mixin', 'mod',
51 'not', 'notin', 'object', 'of', 'or', 'out', 'proc', 'ptr', 'raise', 51 'not', 'notin', 'object', 'of', 'or', 'out', 'proc', 'ptr', 'raise',
52 'ref', 'return', 'shared', 'shl', 'shr', 'static', 'template', 'try', 52 'ref', 'return', 'shl', 'shr', 'static', 'template', 'try',
53 'tuple', 'type', 'when', 'while', 'with', 'without', 'xor' 53 'tuple', 'type', 'using', 'when', 'while', 'xor'
54 ] 54 ]
55 55
56 keywordsPseudo = [ 56 keywordsPseudo = [
57 'nil', 'true', 'false' 57 'nil', 'true', 'false'
58 ] 58 ]

eric ide

mercurial