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 ] |