fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 115 lines 1.3 kB view raw
1const pythonKeywords = [ 2 'and', 3 'as', 4 'assert', 5 'async', 6 'await', 7 'break', 8 'class', 9 'continue', 10 'def', 11 'del', 12 'elif', 13 'else', 14 'except', 15 'False', 16 'finally', 17 'for', 18 'from', 19 'global', 20 'if', 21 'import', 22 'in', 23 'is', 24 'lambda', 25 'None', 26 'nonlocal', 27 'not', 28 'or', 29 'pass', 30 'raise', 31 'return', 32 'True', 33 'try', 34 'while', 35 'with', 36 'yield', 37]; 38 39const pythonBuiltins = [ 40 'abs', 41 'aiter', 42 'all', 43 'anext', 44 'any', 45 'ascii', 46 'bin', 47 'bool', 48 'breakpoint', 49 'bytearray', 50 'bytes', 51 'callable', 52 'chr', 53 'classmethod', 54 'compile', 55 'complex', 56 'delattr', 57 'dict', 58 'dir', 59 'divmod', 60 'enumerate', 61 'eval', 62 'exec', 63 'filter', 64 'float', 65 'format', 66 'frozenset', 67 'getattr', 68 'globals', 69 'hasattr', 70 'hash', 71 'help', 72 'hex', 73 'id', 74 'input', 75 'int', 76 'isinstance', 77 'issubclass', 78 'iter', 79 'len', 80 'list', 81 'locals', 82 'map', 83 'max', 84 'memoryview', 85 'min', 86 'next', 87 'object', 88 'oct', 89 'open', 90 'ord', 91 'pow', 92 'print', 93 'property', 94 'range', 95 'repr', 96 'reversed', 97 'round', 98 'set', 99 'setattr', 100 'slice', 101 'sorted', 102 'staticmethod', 103 'str', 104 'sum', 105 'super', 106 'tuple', 107 'type', 108 'vars', 109 'zip', 110]; 111 112export const keywords = { 113 pythonBuiltins, 114 pythonKeywords, 115};