diff --git a/cmd/micro/runtime.go b/cmd/micro/runtime.go index 6b8792b5..73b88d92 100644 --- a/cmd/micro/runtime.go +++ b/cmd/micro/runtime.go @@ -90,7 +90,7 @@ // runtime/syntax/privoxy-config.micro // runtime/syntax/privoxy-filter.micro // runtime/syntax/puppet.micro -// runtime/syntax/python.micro +// runtime/syntax/python2.micro // runtime/syntax/r.micro // runtime/syntax/reST.micro // runtime/syntax/rpmspec.micro @@ -1980,22 +1980,22 @@ func runtimeSyntaxPuppetMicro() (*asset, error) { return a, nil } -var _runtimeSyntaxPythonMicro = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x7c\x56\xdd\x73\x1b\x37\x0e\x7f\xd7\x5f\xb1\x59\xe5\x4e\xb2\x73\x56\xee\xf5\xae\x4d\x9b\x2f\x7b\xea\x69\xbe\x26\x4e\x3f\x26\x96\xa3\xe1\x92\x58\x89\x11\x97\xe4\x80\x5c\x49\x9b\xa2\xff\x7b\x07\x24\xd7\x91\x9b\xa4\x0f\x5a\xfc\x08\x01\x20\x00\x82\x00\xa7\xd3\xea\x27\x40\xa8\x74\xa8\x84\xad\xe0\x20\x3a\x6f\xa0\x6a\x1d\x56\x6f\x86\xb8\x71\x76\x31\x99\x4e\x27\x61\xb0\x51\x1c\xaa\xda\x27\x56\x5d\xd5\xcb\x85\x1f\xee\xd7\x93\x0d\x08\x05\x58\xd5\x1f\xa6\xf7\x16\xa7\x0f\xe7\x60\x77\xd5\x83\x93\x1f\xb3\xd4\xbc\xa2\xfb\x27\xf5\x64\x32\x9d\x56\x4d\xaf\x4d\x3c\xd3\xb6\x72\xcd\x47\x90\x31\x4c\xa4\x33\x0e\x2b\xe9\x6c\x88\xc2\xc6\xaa\x5e\x36\xf3\x57\xce\x02\x05\x30\x2d\xbd\xc3\x1e\xe8\x42\x98\x00\x27\xcb\xa6\xbe\xa3\x2f\x62\x44\xdd\xf4\x11\xbe\x6a\x62\xb5\x4a\x82\xda\xae\x56\xb4\x5a\x29\x2d\x63\x02\x1d\xc4\x8d\x53\xa1\xe0\xae\x01\xcc\x58\x1a\x11\x32\x6a\x44\x80\x8c\x74\xe7\x1d\x66\x35\x2b\x3a\xc8\x86\x9c\x4c\x94\x9d\xcb\x0c\x68\xfa\xf5\x6a\xf5\x85\x77\x6d\x6f\x65\xd4\xce\x8e\xce\x69\x05\x36\xea\x56\x73\x86\x96\xcd\x5c\x34\x81\x84\xf7\x60\x15\x13\x33\x50\xd3\xb7\x2d\x20\x49\x61\x8c\x68\x0c\x90\xdc\x20\x49\x03\x82\xbf\x2e\x40\xfe\x2a\x92\x9d\x27\xe9\x00\x25\x90\x74\x9d\xd7\x26\x53\x03\x07\x92\xce\x7e\xec\xd7\x22\x32\xc7\x0f\x24\x5d\x6f\x23\x29\x30\x9c\x27\x52\x9a\x7f\xbb\xce\x29\x82\x9d\x30\x04\x07\x90\x2d\x6b\xc3\x21\xb2\x13\x8c\xad\x63\x12\x01\xa9\x35\x4e\x44\x6a\x4d\x1f\x36\xb4\x86\xc8\xbf\x64\x65\x6d\x5c\x23\x4c\xa0\x8d\x08\xab\x2d\x0c\x4c\x13\x7f\x23\xc2\x86\x36\x70\x20\xad\x48\x5b\xc5\xc0\xfa\x3e\x92\xb6\x01\x90\x49\xfa\x01\x5a\xd2\xac\x30\x90\x0e\x3a\x9d\x95\x04\xd2\x21\xf4\x4d\x4a\x3f\xe9\x08\x5d\xa0\x2d\x0c\x81\x0c\x58\x32\x3a\x44\x32\x4e\xf2\x8e\xc6\xd9\x35\x75\xc2\x53\x27\x0e\xd4\x69\x4b\x9d\x53\x40\x7c\x2c\xe4\x64\x24\xe7\xc1\x92\x43\x45\xde\x79\xf2\x6e\x4f\x28\xec\x1a\x08\xc5\x7e\x95\x3d\x41\x10\x2a\x7d\x8c\xb6\x70\x0b\x02\x21\xa8\x5e\x32\xc3\xb8\x24\xd0\xb9\x1d\xaf\x3c\x12\xc2\x0e\x30\x00\xa1\xeb\xad\xa2\x00\xb0\xa5\x50\xd2\x10\x8c\x96\x40\xc1\xb5\x31\x78\x91\x10\x46\x0a\x11\x29\x82\x31\x14\xb1\xb7\x92\x8f\x21\xf6\xde\x00\xc5\xc1\x03\xf5\x56\xf3\x81\x32\x61\xbf\x7b\xaf\x58\x60\x27\x4c\x0f\x81\x76\x02\x03\xed\x51\x47\xc8\xdf\xec\xd9\x21\x87\xf0\x49\xfb\xb1\xb6\x82\x07\xa9\x85\xa9\x72\x0d\x57\x1c\xfc\x37\xaa\x6b\xb5\x12\x4d\xae\x61\xa1\x54\xa6\x36\x53\xae\xaf\x0c\x3a\x9f\x69\x2a\xa6\x02\x53\x21\x15\xcc\x31\x8c\x30\x0a\x6d\x43\x29\x77\x33\x52\x4e\xc5\x88\xf9\xe4\x46\x9c\xb2\x53\x6e\xdd\x6e\xa4\x9d\xcb\xfb\xa7\xca\x4a\xa8\xd4\xd4\x88\x6f\x2d\xac\x21\x7e\xb6\xc0\x85\x95\x41\xf1\x4b\x5b\x1d\x0b\x18\xe9\x6e\xa4\x50\x2e\xab\x81\x7c\xe9\xb9\x66\x32\x08\x1b\xdd\x96\xfb\x5f\xfc\xe8\xfa\x1c\x87\x85\x2c\x62\x9d\xfd\x04\xe8\x12\x76\xa5\x57\xb8\xec\x9c\x77\xa1\xd0\x7d\xa2\x38\xe6\x14\xc7\xa4\xe2\x98\x4c\x1c\x23\xc6\xa3\x90\x11\x3c\x94\x98\xb9\xb0\x32\x38\x72\x09\x6f\x05\x47\xa7\xb0\xec\x8c\xb7\x5b\xe2\x91\xf8\x31\xec\x9b\x0c\x0e\x45\x23\x1c\x25\x35\x1c\x25\x35\x1c\x27\x35\x8c\x02\x45\x3b\x29\x8f\x45\x06\x07\x09\x9e\x1b\x57\x95\xee\x24\x84\xc9\xb4\x2a\xed\x75\x10\x36\x55\xd7\xf9\x28\x42\x57\x51\x58\x25\x50\x9d\x23\x3a\xa4\x27\xa8\xe3\xa6\x83\xa8\x65\x5e\xbf\x70\x6e\xdb\xfb\x8c\xcf\xed\x4e\xa3\xb3\x1d\xd8\x58\x84\x03\xb7\x06\xed\x6c\x59\x8e\xcd\xbc\x88\xbf\xbe\xc8\xe0\x82\xeb\x45\xdb\xf5\x1b\xa7\x47\xcd\xcb\xd7\x85\xa6\xf6\x5c\x30\x37\x9d\x0c\x7f\x86\xe1\x16\x34\x4e\xa0\xba\xe4\xce\x83\xbd\x8f\xf4\x12\x3a\x87\xe5\xdf\x57\xa2\x2b\x7b\xbd\x72\xf1\x92\x0b\x9f\x7d\x83\x12\xca\xeb\xab\x42\x77\x80\xad\x71\xfb\xbc\x7a\xdb\xdb\xa8\x47\xb5\xab\x34\x06\x47\x1c\x22\x74\x77\xf0\x41\x47\x7a\x37\xf8\x22\xfc\x8b\x6d\xb8\x8d\xbc\xe0\x66\x36\x72\x52\x2b\xc8\x8b\x5f\xb9\x11\x64\xf8\x9b\xb6\xca\xed\x43\x5e\xbc\x07\x74\xcf\xf5\x4e\x87\x31\x4f\xe3\x29\x71\x53\x19\xef\x3e\xe3\xdb\xa9\xc9\x5b\xa6\x7d\x13\xb8\xb4\x31\xd1\x17\xce\xae\x13\x48\xe9\x4c\xe8\x59\xbe\xec\x09\x5f\x45\xd4\x45\xa0\xb8\x95\xf0\xd3\x34\x92\xb2\x45\x6e\x65\xd9\x94\x0e\xd9\xc0\x73\x2d\x33\xb8\x28\x93\x2e\xff\x2d\xba\x46\x89\xb2\x43\xb1\xf3\x8c\x0b\xa9\x58\x4f\x69\x78\x99\x1a\x58\xf1\x30\x8f\x81\xb4\x38\xe2\x3f\xcd\xc3\xfb\x8e\xed\xc2\x3b\x92\x7a\xe9\x54\x5f\xfc\xba\xd0\x05\xfc\xfe\x96\xfb\x66\xf6\x1a\x85\x84\x46\xc8\x6d\x96\x40\xd1\x65\xfe\x15\x5f\x85\x84\xce\x8d\xd1\x3e\xe8\xe4\xdd\x98\x5b\x05\x2d\x77\x99\x6f\xcc\x6e\x05\x6d\x75\x2d\xce\x3e\x3d\x39\x7b\xbf\xfa\xef\xd9\xff\x6e\x1e\xd4\x15\x2b\x6d\x61\xd8\x3b\x54\xa3\x46\x88\x22\xa6\x82\xca\xc3\x9e\xa7\x7c\x20\x91\x4a\x9e\x1a\x04\xb1\xa5\x3c\xf1\xb8\xb7\x6a\xdb\x03\x29\x68\x79\x56\x13\x18\xdd\x12\x98\xc0\x83\x99\x6f\x59\x1a\xd4\xd4\x6a\x2b\x8c\x19\xa8\x75\x48\x2d\xba\xae\x0c\x62\xd2\x2d\xe5\x47\x0a\x69\x1e\xad\x64\x52\xf6\xd3\x9c\xb4\x2e\x92\x43\xf2\xbc\x8b\x47\x9e\xc0\x28\x34\x8f\x33\x88\x3d\x5a\x8a\x38\xd0\x5e\xc7\x0d\xed\x37\xfc\x0a\x18\x34\x18\xc5\x09\xa8\x26\x39\x05\xd2\xa1\x88\x0e\xc7\x78\x1a\xd4\xeb\x4d\x5c\x23\x80\xad\xea\xc7\x8b\xd3\xeb\xf9\x4d\x7e\xcd\x39\x0f\x77\x04\x8f\x02\xbf\x5e\xfc\xff\xbb\xff\x3c\x38\xa5\x47\xf7\x96\xff\x7a\x7c\x53\x57\xf5\xf7\x75\x55\xff\x50\x57\xf5\xc3\xba\xaa\xcf\xea\xaa\xfe\x77\x36\xe1\x05\x82\x8d\x1b\x08\xf0\x35\x23\xf3\x93\x3f\xfe\x64\xe5\xe5\x35\x7f\xca\xae\xb6\x4f\x2f\xb7\xbf\xbd\xfb\x16\x99\xcd\x29\xbf\x4e\x47\xc3\x07\x9a\x06\x67\xaa\xef\x2f\xc4\x33\xbb\xaa\xeb\xf9\x72\xb9\xa0\xeb\x0f\xf5\xcd\xc9\x69\x4d\xb3\xb2\x9a\xdd\x9c\x9c\xce\xca\x93\x35\x45\xdf\x18\x21\xb7\x9f\x8d\x74\xd9\xc1\xe9\xe2\xf4\x7e\x91\x32\x4e\x6e\xff\x49\x36\x44\x81\xf1\x51\x5d\xd7\xf5\x9c\x37\xe3\x17\x71\x05\x56\x25\x4e\xfd\x75\xd9\xd9\x6c\x36\x67\x57\x3e\xcb\xce\x66\xb3\x7a\xf2\x57\x00\x00\x00\xff\xff\x85\xf5\x39\x86\xa8\x0b\x00\x00") +var _runtimeSyntaxPython2Micro = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x7c\x57\x59\x73\x23\xb7\x11\x7e\xd7\xaf\x18\x0f\x37\x21\xa5\x8d\xb4\x79\xcd\xe1\xc4\xd7\xaa\xb2\x95\x3d\x5c\x96\x73\x94\x25\x99\x85\x01\x7a\x38\x6d\x62\x00\x54\x03\x43\x72\x36\x9d\xff\x9e\x6a\x00\xa3\xe5\xda\xeb\x3c\x88\xf8\x80\x69\x34\xba\x3f\xf4\x01\xad\x56\xcd\xdf\x80\xa0\xc1\xd8\x28\xd7\xc0\x49\x8d\xc1\x42\xd3\x7b\x6a\xbe\x9d\xd3\xe0\xdd\xcd\xc5\x6a\x75\x11\x67\x97\xd4\xa9\x69\x43\x5e\x6a\x9b\xf6\xe1\x26\xcc\xcf\xda\x8b\x01\x94\x01\x6a\xda\x1f\x57\x9f\xdd\x5c\xbd\xd8\x80\x3b\x34\xcf\x2f\xff\x5a\xa4\x36\x0d\x3f\xbb\x6c\x2f\x2e\x56\xab\xa6\x9b\xd0\xa6\x6b\x74\x8d\xef\x7e\x02\x9d\xe2\x85\xf6\xd6\x53\xa3\xbd\x8b\x49\xb9\xd4\xb4\x0f\xdd\xe6\xad\x77\xc0\x11\x6c\xcf\xdf\xd3\x04\x7c\xab\x6c\x84\xcb\x87\xae\xfd\x68\xbf\x4a\x89\xb0\x9b\x12\x7c\x52\xc5\x76\xdb\xa9\x08\x71\xbb\xe5\xed\x36\x6f\x41\x97\xb1\xb6\x2a\x96\x55\x03\xdd\xb4\x2b\x08\x75\x2a\xc0\xeb\x3c\xf6\x68\x21\x83\x11\xc6\x0e\x28\x56\x9c\x06\x6f\x0a\x76\x6a\x2c\x02\x62\xe4\x76\xfb\x0b\xdb\xfa\xc9\xe9\x84\xde\x2d\xa6\xa1\x01\x97\xb0\x47\xe1\xe7\xa1\xdb\xa8\x2e\xb2\x0a\xc1\xce\xac\x95\xb5\xaa\xb3\xc0\x7a\x20\xd6\x63\x60\xed\xc7\x80\x16\xd8\x80\x15\x07\xd9\xa0\xfc\x1d\x46\x6f\x18\x0e\xca\x32\x9c\x40\xe7\x1f\xb1\x91\x7b\xb4\x09\x88\x7b\x4f\xa3\x4a\xbc\x83\x94\xf7\xec\xac\xef\x94\x8d\x3c\xa8\x98\xe7\x83\x8a\x03\x0f\x60\x03\x0f\x70\x62\x34\x8c\x2e\x4c\x89\xd1\x25\x20\xc7\x18\x31\xf3\xa6\x81\x31\xc6\xa9\xcb\x0c\xb1\x05\xc7\xd6\x6b\x51\x33\xaa\x13\x8f\xe8\xd8\xc1\x29\xb1\xd7\x89\x7d\x00\xc7\x9e\x0c\x07\x7f\x64\x52\x6e\x07\x4c\xea\xb8\x2d\x5a\x09\xcc\xa4\x81\x09\xac\x57\x86\x09\x02\x31\xf9\xc9\x19\x8e\xd5\xba\xc9\xa1\x38\x7b\x50\x14\xf9\x3d\x06\xde\x6e\x71\x0c\x9e\xd2\x07\x1a\xa3\x1f\xa1\x11\x93\x8c\x22\xd3\x58\xec\x48\xd1\xdc\x54\xfe\x9b\x17\xe7\x37\xbf\xfa\x34\xbf\x21\x80\x33\xac\x2d\x28\x62\x6d\x7d\x84\xf2\x6b\x58\x7b\x20\x0d\xac\xbd\xfb\x69\xda\xa9\x24\x28\xcc\xac\xfd\xe4\x12\xc3\x29\xc9\x2e\x21\xd6\x79\xee\xed\x14\x07\xa1\x54\xe8\xdb\xee\x61\x66\x74\x46\xe8\x73\x11\x28\x31\x26\x18\x23\x13\x64\x1f\x95\xb1\xe8\xe0\x09\x44\x46\x21\x7e\xe6\x3d\xcc\x91\x47\x6f\x80\x25\x60\x38\xf8\xc0\x04\xa3\x3f\x88\xe8\x01\x28\x4a\x90\xc3\x9e\xa3\xef\x53\x0c\x4a\x03\x47\x4f\x89\x13\x58\xcb\x89\x26\xa7\xc5\xc0\x23\xe1\xf2\x5b\x74\x4f\xc1\xc8\xfa\x41\xd9\x09\xe2\x13\x65\x01\x34\x2a\x5b\x49\x6a\xe4\xb8\x5f\x89\xbd\xed\x56\x75\x25\x88\x95\x31\x65\x74\x65\x94\x58\x2c\x60\x0c\x65\xcc\x64\x55\x28\xa5\xe0\x54\xb1\x58\xb6\xc0\xa4\xd0\x2d\x09\x65\x97\x51\x6e\x68\xc1\xc2\xd4\xcf\xd2\x0c\x6c\xb4\x58\x35\x1b\x3c\x2c\xe3\xe8\x8b\x21\xbd\xf5\x55\x7f\x8d\xe8\x05\x3f\xa9\xda\x41\xfa\xa0\x41\xc2\xbb\x80\x6a\x20\x3a\x4c\x15\x2c\xe3\x61\x19\x81\xca\x92\x85\x52\x0f\xac\x77\xa5\x08\xd8\x38\x60\x5f\xbe\x2d\x76\x8c\x53\x71\xc8\x41\x11\x71\xde\xbd\x07\xf2\x19\xfb\xea\x8b\x2f\xc6\x05\x1f\xeb\x78\xcc\x23\x2d\xe4\xd2\xc2\x2e\x2d\xac\xd2\xe2\x31\x9d\xb9\x4c\x10\xa0\xfa\x2c\x29\x53\xc0\x99\x49\xf4\x24\xb8\x18\x45\xf5\x64\x7a\x3a\x92\xce\xc4\xcf\xe1\xd4\x15\x70\xaa\x3b\xe2\x19\xa9\xf1\x8c\xd4\x78\x4e\x6a\x5c\x04\xea\xee\xbc\x79\x89\x36\x38\x69\x08\x52\xdf\x9a\x5c\x2c\x24\x0f\x9b\x5a\x83\x67\xe5\x72\x98\xbd\x5c\x44\xf8\xae\x26\xf2\x4b\x22\x4f\xfc\x25\x61\x1a\x46\x48\xa8\xcb\xfc\xb5\xf7\xfb\x29\x14\xfc\xd2\x1d\x90\xbc\x1b\xc1\xa5\x2a\x1c\x25\xd7\xd0\xbb\x3a\x5d\xf2\xbe\x8a\xbf\xbb\x2d\xe0\x56\xe2\x05\xdd\xee\x5b\x8f\xcb\xce\x57\xef\xea\x98\x4b\x4b\xc5\x92\xbf\x05\xfe\x1d\xe6\x27\xd0\x79\x45\xe6\x95\xd4\x42\x9a\x42\xe2\x37\x30\x7a\xaa\x5f\xdf\xaa\xb1\x9e\xf5\xd6\xa7\x57\x92\x01\x62\x1b\x54\x57\xde\xdd\xd5\xf1\x00\xd4\x5b\x7f\x2c\xb3\xef\x26\x97\x70\xd9\x76\x97\x7b\xe5\x82\x63\x82\xf1\x23\x7c\xc2\xc4\xdf\xcf\xa1\x0a\xff\xc3\x75\x52\x28\x5f\x4b\xd5\x5d\x56\x50\x7b\x53\x3f\xff\x53\x12\xbe\xc0\x7f\xa1\x33\xfe\x18\xcb\xe4\x07\x20\xff\x0d\x1e\x30\x2e\x3c\x2d\xb7\x94\xe6\xf0\x54\x04\x04\xe7\x7b\xc9\x5d\x31\x11\xba\x1d\x77\xde\x5b\xee\xa6\xbe\x07\xe2\x6e\x4e\xa0\x88\xd4\x9c\x51\xe4\x7c\xaf\xa5\x98\x70\xcd\x7d\x96\xfc\x65\x70\xd3\x08\x24\x05\xa8\x34\x20\xa1\x9e\x7b\xf2\xef\xc1\x45\xc8\x3d\x85\x2d\xc6\xc4\x92\x57\x3c\xaa\xc0\x63\xe6\xf3\x80\x70\xe4\xd2\xf1\x39\x90\x0f\x40\x69\x5e\x8a\x60\x6e\x0d\x9c\x43\x8f\x63\x52\x09\x75\x3d\x38\x26\xe2\x38\x05\x20\x4e\x53\xb0\xc0\xe2\x44\x6e\x1f\x52\x51\x4f\xb9\xf1\x5c\xb6\x4b\x0b\x78\xf2\x50\x1e\x0f\x42\x6a\x66\x36\x83\x57\x2e\xe5\xf1\xb5\x77\xbb\x0c\x72\xc0\x64\xf4\x75\xf1\x2d\xe3\xbb\x4c\x4b\x86\x95\xf8\x8c\xbf\xca\x0c\x15\x8d\x62\x46\x51\x85\xb1\x28\xf8\x06\x75\x01\xb7\xb5\xe5\x97\xcf\x6a\xec\x8c\xaa\x27\x54\x3d\x5f\x0b\xa5\x55\x7b\xbe\xe8\x37\xd9\xcb\x6a\x61\xe9\xc0\x79\x72\xb6\xfe\x55\x79\xb9\x7c\xa4\xbb\xae\x9d\x49\xbd\xf1\x66\xaa\x76\xdd\x62\x05\xff\xfe\x4e\xe8\x29\x56\x93\xd2\xd0\x29\xbd\x2f\x12\xa4\xc6\xb2\x7e\x27\x8c\x67\xf4\xd2\x5a\x0c\x11\xb3\x75\x4b\xf4\x18\xe8\xa5\x8e\xfe\xca\x23\xc6\x40\xdf\xdc\xab\xeb\xf7\x5f\x5e\xff\xb0\xfd\xfd\xf5\x1f\x1e\x9f\xe7\x3d\x7b\x98\x8f\x9e\xcc\xb2\x41\x2e\x33\x67\x4c\x69\xca\xce\xb0\x8a\xac\x72\x4e\x73\x47\xa0\xf6\x25\xcc\xa4\x1b\x27\x74\x93\x3c\x7a\x7a\x79\xf8\x30\x58\xec\x19\x6c\x04\x2e\x95\x86\x7b\x74\xca\xda\x59\x1e\x3a\x12\x6c\x63\x7d\xe2\x30\xf6\x5c\x1e\x0f\x8c\xf2\x90\x61\x9b\x79\x67\xe7\x13\x7b\xe2\x20\xca\x03\x49\x4c\x92\xc2\x28\x5d\x37\x4d\xe4\x38\xd1\xcc\xc7\x41\xc2\xf7\x88\x69\xe0\x19\xc1\x9a\xec\x76\xf1\x5b\x7b\x52\xc9\xd3\xe2\x45\x47\xb8\x1b\xd2\x8e\x00\x5c\xd3\x7e\x71\x73\x75\xbf\x79\x2c\x92\x12\xc5\xe7\x82\x67\xee\xde\xdf\xfc\xf1\x4f\xbf\x7b\x7e\xc5\x9f\x7f\xf6\xf0\x9b\x2f\x1e\xdb\xa6\xfd\x73\xdb\xb4\x7f\x69\x9b\xf6\x45\xdb\xb4\xd7\x6d\xd3\xfe\xb6\xa8\x08\x8a\xc0\xa5\x01\x22\x7c\x4a\xc9\xe6\xf2\x3f\xff\x95\xcd\x0f\xf7\xf2\x53\x4f\x75\x53\x7e\x92\xfe\xec\xcd\x7b\x53\x96\x85\xe8\xfb\x7c\x1f\x8b\x3b\x25\xd7\x7f\x21\x5e\x96\x9b\xb6\xdd\x3c\x3c\xdc\xf0\xfd\x8f\xed\xe3\xe5\x55\xcb\xeb\x3a\x5b\x3f\x5e\x5e\xad\xeb\x73\x3d\x7b\xdf\x59\xa5\xf7\x1f\x94\x8c\xc5\xc0\xd5\xcd\xd5\xb3\x2a\x65\xbd\xde\xff\x3f\xd9\x98\x14\xa5\xcf\xdb\xb6\x6d\x37\x72\x98\xfc\x37\xd0\x80\x33\x79\xa5\xfd\xb4\xec\x7a\xbd\xde\x88\x29\x1f\x64\xd7\xeb\x75\x7b\xf1\xbf\x00\x00\x00\xff\xff\xda\xd2\x89\x51\xa4\x0c\x00\x00") -func runtimeSyntaxPythonMicroBytes() ([]byte, error) { +func runtimeSyntaxPython2MicroBytes() ([]byte, error) { return bindataRead( - _runtimeSyntaxPythonMicro, - "runtime/syntax/python.micro", + _runtimeSyntaxPython2Micro, + "runtime/syntax/python2.micro", ) } -func runtimeSyntaxPythonMicro() (*asset, error) { - bytes, err := runtimeSyntaxPythonMicroBytes() +func runtimeSyntaxPython2Micro() (*asset, error) { + bytes, err := runtimeSyntaxPython2MicroBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "runtime/syntax/python.micro", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + info := bindataFileInfo{name: "runtime/syntax/python2.micro", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -2582,7 +2582,7 @@ var _bindata = map[string]func() (*asset, error){ "runtime/syntax/privoxy-config.micro": runtimeSyntaxPrivoxyConfigMicro, "runtime/syntax/privoxy-filter.micro": runtimeSyntaxPrivoxyFilterMicro, "runtime/syntax/puppet.micro": runtimeSyntaxPuppetMicro, - "runtime/syntax/python.micro": runtimeSyntaxPythonMicro, + "runtime/syntax/python2.micro": runtimeSyntaxPython2Micro, "runtime/syntax/r.micro": runtimeSyntaxRMicro, "runtime/syntax/reST.micro": runtimeSyntaxRestMicro, "runtime/syntax/rpmspec.micro": runtimeSyntaxRpmspecMicro, @@ -2749,7 +2749,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "privoxy-config.micro": &bintree{runtimeSyntaxPrivoxyConfigMicro, map[string]*bintree{}}, "privoxy-filter.micro": &bintree{runtimeSyntaxPrivoxyFilterMicro, map[string]*bintree{}}, "puppet.micro": &bintree{runtimeSyntaxPuppetMicro, map[string]*bintree{}}, - "python.micro": &bintree{runtimeSyntaxPythonMicro, map[string]*bintree{}}, + "python2.micro": &bintree{runtimeSyntaxPython2Micro, map[string]*bintree{}}, "r.micro": &bintree{runtimeSyntaxRMicro, map[string]*bintree{}}, "reST.micro": &bintree{runtimeSyntaxRestMicro, map[string]*bintree{}}, "rpmspec.micro": &bintree{runtimeSyntaxRpmspecMicro, map[string]*bintree{}}, diff --git a/runtime/syntax/python.micro b/runtime/syntax/python.micro deleted file mode 100644 index ed5f5302..00000000 --- a/runtime/syntax/python.micro +++ /dev/null @@ -1,43 +0,0 @@ -## Here is an example for Python. -## -syntax "python" "\.py$" -header "^#!.*/(env +)?python( |$)" - -## built-in objects -color constant "\b(None|self|True|False)\b" -## built-in attributes -color constant "\b(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\b" -## built-in functions -color identifier "\b(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip)\b" -## special method names -color identifier "\b(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__)\b" -## exception classes -# color cyan "\b(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\b" -## types -color type "\b(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringType|UnicodeType|BufferType|TupleType|ListType|DictType|FunctionType|LambdaType|CodeType|ClassType|UnboundMethodType|InstanceType|MethodType|BuiltinFunctionType|BuiltinMethodType|ModuleType|FileType|XRangeType|TracebackType|FrameType|SliceType|EllipsisType)\b" -## definitions -color identifier "def [a-zA-Z_0-9]+" -## keywords -color statement "\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|return|try|with|while|yield)\b" - -## decorators -color brightgreen "@.*[(]" - -## operators -color statement "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" - -## parentheses -color statement "[(){}]" "\[" "\]" - -## numbers -color constant.number "\b[0-9]+\b" - -## strings -color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'" - -## brightblacks -color comment "#.*$" - -## block brightblacks -color comment start=""""([^"]|$)" end=""""" -color comment start="'''([^']|$)" end="'''" diff --git a/runtime/syntax/python2.micro b/runtime/syntax/python2.micro new file mode 100644 index 00000000..71904d17 --- /dev/null +++ b/runtime/syntax/python2.micro @@ -0,0 +1,46 @@ +## Here is an example for Python. +## +syntax "python" "\.py$" +header "^#!.*/(env +)?python( |$)" + +## built-in objects +color constant "\b(None|self|True|False)\b" +## built-in attributes +color constant "\b(__bases__|__builtin__|__class__|__debug__|__dict__|__doc__|__file__|__members__|__methods__|__name__|__self__)\b" +## built-in functions +color identifier "\b(abs|apply|callable|chr|cmp|compile|delattr|dir|divmod|eval|exec|execfile|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|intern|isinstance|issubclass|len|locals|max|min|next|oct|open|ord|pow|range|raw_input|reduce|reload|repr|round|setattr|unichr|vars|zip|__import__)\b" +## some standard library methods / attributes +#color identifier "\b(append|clear|close|closed|coerce|conjugate|copy|count|extend|fileno|flush|get|has_key|index|insert|items|read|readline|readlines|isatty|keys|mode|name|pop|remove|reverse|seek|softspace|sort|tell|truncate|write|writelines|update|values)\b" +## special method names +color identifier "\b(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__dict__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__)\b" +## exception classes +# color cyan "\b(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\b" +## types +color type "\b(basestring|bool|buffer|bytearray|bytes|classmethod|complex|dict|enumerate|file|float|frozenset|int|list|long|map|memoryview|object|property|reversed|set|slice|staticmethod|str|super|tuple|type|unicode|xrange)" +#color type "\b(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringType|UnicodeType|BufferType|TupleType|ListType|DictType|FunctionType|LambdaType|CodeType|ClassType|UnboundMethodType|InstanceType|MethodType|BuiltinFunctionType|BuiltinMethodType|ModuleType|FileType|XRangeType|TracebackType|FrameType|SliceType|EllipsisType)\b" +## definitions +color identifier "def [a-zA-Z_0-9]+" +## keywords +color statement "\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\b" + +## decorators +color brightgreen "@.*[(]" + +## operators +color statement "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" + +## parentheses +color statement "[(){}]" "\[" "\]" + +## numbers +color constant.number "\b[0-9]+\b" + +## strings +color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'" + +## brightblacks +color comment "#.*$" + +## block brightblacks +color comment start=""""([^"]|$)" end=""""" +color comment start="'''([^']|$)" end="'''"