mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
Set XML filetype for .svg and files with xml version tag
This commit is contained in:
@@ -3356,7 +3356,7 @@ func runtimeSyntaxSystemdYaml() (*asset, error) {
|
|||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _runtimeSyntaxTclYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x55\x5d\x97\xdb\x34\x10\x7d\xdf\x5f\xe1\xa6\x7b\x68\xb2\x7b\x36\xf0\x4a\x0a\x2c\xbc\xf3\x0b\x58\x6d\x83\x2c\x8f\x6d\x91\xb1\x24\x46\xe3\x24\xa6\xd3\xff\xce\x19\xd9\xc9\xa6\xe7\x40\x1f\x6c\xdd\xd1\xc7\x48\xba\xba\xba\x6a\x3d\x02\x4f\x09\x76\x15\x3b\xbc\xbb\x6b\x80\xc1\xf1\xae\xba\xab\xaa\xaa\xd2\xb6\x60\x07\xd8\x55\x2b\x63\xb6\xec\xf0\x7e\x55\xea\x7b\xb0\x0d\xd0\xae\x5a\x7d\x7a\xff\x6e\xfb\xf0\xfd\x1a\xc2\xb1\x7a\xdc\x3c\xb3\xc3\xdc\xaf\x2b\xb9\xdf\xac\xee\xee\x68\x44\xc8\xbb\xd2\xfd\xa9\xca\x6c\x19\x06\x08\x5c\x32\xd5\x6b\xdb\x32\x90\xd8\x94\x20\x34\x62\x89\xec\x24\x76\xe4\xb8\x87\x33\xb8\x78\x98\xb1\x1f\x52\x24\x9e\x31\x46\xdb\xbc\xa1\xbd\x0f\x0d\x9c\xe7\xf8\xef\xd1\xa2\x6f\x27\xa9\x7d\xb0\x34\x49\x4d\x60\x0f\xe2\x6c\x06\x71\x96\x5d\x2f\xae\x11\x87\xd1\x1d\xf4\xaf\x95\x31\x38\xcb\x5a\xb0\x0f\x23\x08\x60\x06\x81\xe0\x62\xe3\x43\x27\x10\x5b\x01\xa2\x48\x02\x47\x8b\xa2\xab\x11\x38\x7b\x16\x38\x27\x92\xb6\xd6\x44\xd0\x48\xeb\x62\x68\x7d\x37\x12\x28\x4c\x93\x28\x4f\xe5\x07\x47\x08\x2c\x2d\x8e\xb9\x97\x36\x92\x7e\x60\x5d\xc1\x83\x65\xe9\x80\xb3\x74\x18\xeb\xf2\xb3\x28\xbd\xcf\x1c\x69\x12\xdf\x8a\x0f\x8e\xc4\x87\x36\x8a\x0f\x0c\x94\xe4\xaf\xe8\x83\xe0\xc2\x11\xce\x5b\x46\x1f\x32\x10\x0b\xfa\xcc\x82\x08\xa1\xe3\x5e\x0a\x39\x48\x36\x74\x20\x48\x90\xd0\x3a\x10\xcc\x60\xc9\xf5\x5a\xb2\x60\x56\x26\xf5\x24\x73\xd2\xc6\x98\x20\x48\xb2\xee\x60\x3b\x90\xe4\x1b\x49\x23\x67\x49\xa7\x46\x08\xac\xfe\x3a\x38\x27\x2d\xf2\x58\x0b\x15\x09\x08\x01\x8f\x14\x24\x3b\x1b\x24\x03\x1c\x44\x13\x67\x25\x44\x8b\x91\x1c\x48\x4e\xe8\x59\x32\x93\x72\x99\xc7\x3a\xb3\xe4\x93\xd7\x53\x60\x87\xbf\xc7\x4e\x18\x10\x85\xfd\x00\xc2\xa4\xeb\x18\xc3\x21\xc4\x53\x90\x31\x68\xb2\x31\x35\x96\x41\xc6\x84\x70\x04\x94\x31\x1d\x2d\xc9\xd1\x92\xb7\x35\x82\x1c\x4f\xd6\xb3\x9c\x7a\x8f\xb0\x31\xa6\x5e\xfd\x9f\xb2\x54\x4c\x95\x0d\xd3\x10\x09\x66\x69\x55\x4d\x0c\xb0\xd0\x31\x57\xc0\xd9\x67\xce\x4b\xd0\x01\x2f\xa8\x10\x74\xc1\x70\x66\xc0\x92\x79\xa9\xc9\xd7\x7e\xd9\xff\x73\x49\x9d\xd9\x12\x7f\x95\x5b\x17\xe4\x33\x7b\x77\xc9\x54\x36\xf7\xad\x25\xcf\x84\x55\xf5\xa4\x13\x96\x13\x5d\x6a\x5c\x1c\x92\x25\xb8\x84\xa0\x5a\xbf\x04\xad\xa7\x7c\xe1\xba\x9a\xc5\x71\x09\xf2\x05\xa1\x7d\xeb\xf2\x75\xe6\xc1\xa6\x37\xa8\x07\xb4\x04\xb3\x88\x2e\x01\x24\xb0\x7c\x13\x15\x61\x2d\x21\xc7\x37\x84\xf1\x04\xf4\x16\xb2\x67\xbc\xe9\x37\xa6\x74\xd3\x4a\x7e\xb8\xc5\x08\x2d\xdf\xc6\xe4\xbb\xfe\x5a\x71\xf2\x78\xdd\xef\x29\x52\xa3\x17\xe1\x26\x2c\xdc\x7f\x53\x0b\x68\x69\xb8\xb1\x8d\x74\xe8\xa4\x5e\x0e\x4b\xdd\x61\x76\x04\xcb\xe5\x5a\x3a\xcb\xe5\x5a\x38\x17\x11\x55\x87\xee\xe2\x15\x33\xef\xae\xef\x28\x89\xeb\x87\xd8\x88\xeb\x55\xb5\xae\xa7\x18\x59\xdc\xcc\xbe\x5b\x18\x76\x43\x33\x8b\xdb\xc5\x61\xb0\xa1\xc1\x18\x93\xb8\x99\x58\x57\x2e\x05\x89\xe3\x78\xd0\xa9\xd4\x77\xa5\x19\x93\x80\xeb\x63\xb1\x1b\x94\xd6\x05\x46\x69\x8b\x67\xb5\x91\x0e\xd2\xea\xb6\xa4\x65\x1a\x75\x39\x20\xed\x18\x4a\x63\x1f\x33\xef\x67\xc3\x68\x8a\x71\x9c\xe5\x00\x13\x36\x80\xa5\x54\x59\x6b\x79\x80\x29\x17\xa0\xfa\x3d\x28\xa3\x68\x73\xf6\x5d\x10\x54\x17\xb4\x6a\x32\x30\x24\x9e\x04\x0b\x0f\xe8\xc3\x41\x70\x56\x85\xb2\x86\xbe\x5e\xbc\x47\x37\x82\x47\x4b\x4a\x8a\x96\x69\x89\x93\xba\xdd\x60\xcf\x32\xf8\x20\xc1\x3b\xb5\x94\x04\x92\x28\x16\x5f\x24\x1b\x9a\x38\x14\x67\x69\x3c\x89\xea\xc8\x97\x8d\xa8\x95\xe8\x12\xe0\xcc\x05\x97\xde\x0a\x16\x49\x02\x82\x63\xc9\x40\x47\xa0\xbd\x75\x0e\xd2\x35\x72\x04\x25\x83\xef\x82\x5e\x09\x04\x48\x92\xa7\xe0\x24\x4f\x99\x61\x50\xbf\x39\xef\x5b\x1f\x1a\x1f\x3c\x2f\x91\x72\x59\x50\xd1\x02\x87\xe6\x9c\xe7\x78\x1e\x3e\xc3\x9b\xe1\xc5\x6f\xd4\xac\xb2\xba\x55\xc8\xea\x6d\x4c\xd3\xbe\x3c\x0d\xe3\x60\xf3\x41\xb4\xcb\xad\x00\x7d\x03\x81\x7d\xeb\x81\xb6\x4e\x59\xde\x55\xab\x44\xd1\xbd\xbc\xec\x8a\xef\xee\x5e\x5f\x65\x6d\xcc\x67\x31\xe6\xcb\xe6\x2a\xda\x69\xa8\x23\x6e\x63\x02\xb2\x1c\xf5\x51\x5d\x1b\xb3\x16\x63\x36\x62\xcc\x47\xf9\x53\x8c\x31\x46\x8c\xb9\x97\x9f\xe4\x17\x79\x27\x3f\xcb\x77\x62\x8c\x5c\xc7\xbb\x18\x32\xdb\xc0\xdb\x30\x0e\x75\x79\x94\x8d\xa9\x5f\x7e\x78\xfa\xf1\xf5\x71\x6d\xcc\x76\x46\x9b\xe7\x9b\x55\x5e\x47\xcc\x77\x49\x47\xe8\x9c\xc6\x6c\xe5\xe5\x93\x59\xbd\x6e\x1e\xcc\x4a\x3e\x5c\x6b\x3e\xbc\x6e\x1e\x3e\xfc\xc7\x0e\x8f\x76\x9e\xec\xde\x98\xcf\xcf\x3a\xcd\x6f\x4f\x7f\xec\xdf\xfd\xfa\xfe\xfe\xe1\xf9\xe9\xf5\xd1\x98\x2f\xcf\x6f\x13\x0e\xcb\xad\x5c\x7f\x92\x8f\x9b\x1b\x3a\x1e\xde\x6f\x1f\xae\xa9\x83\xe6\x7e\x72\xbd\xa5\xed\xa9\xf7\x3c\xbf\x55\xbb\x6a\x75\xd3\xff\xf1\x7e\x75\xf7\x6f\x00\x00\x00\xff\xff\x44\x7a\xd2\xf7\xb1\x08\x00\x00")
|
var _runtimeSyntaxTclYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x55\xd1\x96\xdb\x26\x10\x7d\xdf\xaf\x50\x9c\x3d\x8d\xbd\x7b\xd6\xed\x6b\x9d\xb6\xdb\xbe\xf7\x0b\xba\x6c\x5c\x84\x46\x12\xf5\x08\xe8\x30\xb2\xad\x66\xf2\xef\x3d\x83\x64\xaf\x73\x4e\x9b\x07\xc1\x1d\x04\x03\x5c\x2e\x97\xd6\x23\xf0\x94\x60\x57\xb1\xc3\xbb\xbb\x06\x18\x1c\xef\xee\xaa\xaa\xaa\xf4\x57\xb0\x03\xec\xaa\x95\x31\x5b\x76\x78\xbf\x2a\xed\x3d\xd8\x06\x68\x57\xad\x3e\xbd\x7f\xb7\x7d\xf8\x7e\x0d\xe1\x58\x3d\x6e\x9e\xd9\x61\xee\xd7\x95\xdc\x6f\x56\x77\x77\x34\x22\xe4\x39\xcd\x53\x95\xd9\x32\x0c\x10\xb8\x64\xaa\xd7\xb6\x65\x20\xb1\x29\x41\x68\xc4\x12\xd9\x49\xec\xc8\x71\x0f\x67\x70\xf1\x30\x63\x3f\xa4\x48\x3c\x63\x8c\xb6\x79\x43\x7b\x1f\x1a\x38\xcf\xf1\xdf\xa3\x45\xdf\x4e\x52\xfb\x60\x69\x92\x9a\xc0\x1e\xc4\xd9\x0c\xe2\x2c\xbb\x5e\x5c\x23\x0e\xa3\x3b\x68\xa9\x8d\x31\x38\xcb\x5a\xb1\x0f\x23\x08\x60\x9e\x0b\xdf\x0a\x04\x17\x1b\x1f\x3a\x81\xd8\x0a\x10\x45\x12\x38\x5a\x14\x5d\x94\xc0\xd9\xb3\xc0\x39\x91\xb4\xb5\xe6\x83\x46\x5a\x17\x43\xeb\xbb\x91\x40\x61\x9a\x44\xe9\x2a\x05\x1c\x21\xb0\xb4\x38\xe6\x5e\xda\x48\xfa\x81\x75\x05\x0f\x96\xa5\x03\xce\xd2\x61\xac\x4b\x61\x51\x7a\x9f\x39\xd2\x24\xbe\x15\x1f\x1c\x89\x0f\x6d\x14\x1f\x18\x28\xc9\x5f\xd1\x07\xc1\x85\x2a\x9c\x77\x8e\x3e\x64\x20\x16\xf4\x99\x05\x11\x42\xc7\xbd\x14\x8e\x90\x6c\xe8\x40\x90\x20\xa1\x75\x20\x98\xc1\x92\xeb\xb5\x66\xc1\xac\x84\xea\x81\xe6\xa4\x3f\x63\x82\x20\xc9\xba\x83\xed\x40\x92\x6f\x24\x8d\x9c\x25\x9d\x1a\x21\xb0\x5a\x74\x70\x4e\x5a\xe5\xb1\x16\x2a\x4a\x10\x02\x1e\x29\x48\x76\x36\x48\x06\x38\x88\x26\xce\x4a\x88\x56\x23\x39\x90\x9c\xd0\xb3\x64\x26\xe5\x32\x8f\x75\x66\xc9\x27\xaf\x87\xc1\x0e\x7f\x8f\x9d\x30\x20\x0a\xfb\x01\x84\x49\xd7\x31\x86\x43\x88\xa7\x20\x63\xd0\x64\x63\x6a\x2c\x83\x8c\x09\xe1\x08\x28\x63\x3a\x5a\x92\xa3\x25\x6f\x6b\x04\x39\x9e\xac\x67\x39\xf5\x1e\x61\x63\x4c\xbd\xfa\x3f\x81\xa9\xa6\x2a\x1b\xa6\x21\x12\xcc\x0a\xab\x9a\x18\x60\xa1\x63\x6e\x80\xb3\xcf\x9c\x97\xa0\x03\x5e\x50\x21\xe8\x82\xe1\xcc\x80\x25\xf3\xd2\x92\xaf\xfd\xb2\xff\xe7\x92\x3a\xb3\x25\xfe\x2a\xb7\x2e\xc8\x67\xf6\xee\x92\xa9\x6c\xee\x5b\x4b\x9e\x09\xab\xea\x49\x27\x2c\x27\xba\xb4\xb8\x38\x24\x4b\x70\x09\x41\x25\x7f\x09\x5a\x4f\xf9\xc2\x75\x35\x8b\xe3\x12\xe4\x0b\x42\xfb\xd6\xe5\xeb\xcc\x83\x4d\x6f\x50\x0f\x68\x09\x66\x11\x5d\x02\x48\x60\xf9\x26\x2a\xc2\x5a\x42\x8e\x6f\x08\xe3\x09\xe8\x2d\x64\xcf\x78\xd3\x6f\x4c\xe9\xe6\x2f\xf9\xe1\x16\x23\xb4\x7c\x1b\x93\xef\xfa\x6b\xc3\xc9\xe3\x75\xbf\xa7\x48\x8d\x5e\x84\x9b\xb0\x70\xff\x4d\x2d\xa0\xa5\xe1\xc6\x3d\xd2\xa1\x93\x7a\x39\x2c\x35\x89\xd9\x18\x2c\x97\x6b\xe9\x2c\x97\x6b\xe1\x5c\x44\x54\x1d\xba\x8b\x65\xcc\xbc\xbb\xbe\xa3\x24\xae\x1f\x62\x23\xae\x57\xd5\xba\x9e\x62\x64\x71\x33\xfb\x6e\x61\xd8\x0d\xcd\x2c\x6e\x17\x87\xc1\x86\x06\x63\x4c\xe2\x66\x62\x5d\xb9\x14\x24\x8e\xe3\x41\xa7\x52\xf7\x95\x66\x4c\x02\xae\x8f\xc5\x6e\x50\x5a\x17\x18\xa5\x2d\xd6\xd5\x46\x3a\x48\xab\xdb\x92\x96\x69\xd4\xe5\x80\xb4\x63\x28\x3f\xfb\x98\x79\x3f\x1b\x46\x53\x8c\xe3\x2c\x07\x98\xb0\x01\x2c\xb5\xca\x5a\xeb\x03\x4c\xb9\x00\xd5\xef\x41\x19\x45\x9b\xb3\xef\x82\xa0\x9a\xa1\x55\x93\x81\x21\xf1\x24\x58\x78\x40\x1f\x0e\x82\xb3\x2a\x94\x35\xf4\xf5\xe2\x3d\xba\x11\x3c\x5a\x52\x52\xb4\x4e\x4b\x9c\xd4\xed\x06\x7b\x96\xc1\x07\x09\xde\xa9\xa5\x24\x90\x44\xb1\xf8\x22\xd9\xd0\xc4\xa1\x38\x4b\xe3\x49\x54\x47\xbe\x6c\x44\xad\x44\x97\x00\x67\x2e\xb8\xf4\x56\xb0\x48\x12\x10\x1c\x4b\x06\x3a\x02\xed\xad\x73\x90\xae\x91\x23\x28\x19\x7c\x17\xf4\x4a\x20\x40\x92\x3c\x05\x27\x79\xca\x0c\x83\xfa\xcd\x79\xdf\xfa\xd0\xf8\xe0\x79\x89\x94\xcb\x82\x8a\x16\x38\x34\xe7\x3c\xc7\xf3\xf0\x19\xde\x0c\x2f\x7e\xa3\x66\x95\xd5\xad\x42\x56\x6f\x63\x9a\xf6\xe5\x69\x18\x07\x9b\x0f\xa2\x5d\x6e\x05\xe8\x1b\x08\xec\x5b\x0f\xb4\x75\xca\xf2\xae\x5a\x25\x8a\xee\xe5\x65\x57\x7c\x77\xf7\xfa\x2a\x6b\x63\x3e\x8b\x31\x5f\x36\x57\xd1\x4e\x43\x1d\x71\x1b\x13\x90\xe5\xa8\x6f\xeb\xda\x98\xb5\x18\xb3\x11\x63\x3e\xca\x9f\x62\x8c\x31\x62\xcc\xbd\xfc\x24\xbf\xc8\x3b\xf9\x59\xbe\x13\x63\xe4\x3a\xde\xc5\x90\xd9\x06\xde\x86\x71\xa8\xcb\xdb\x6c\x4c\xfd\xf2\xc3\xd3\x8f\xaf\x8f\x6b\x63\xb6\x33\xda\x3c\xdf\xac\xf2\x3a\x62\xbe\x4b\x3a\x42\xe7\x34\x66\x2b\x2f\x9f\xcc\xea\x75\xf3\x60\x56\xf2\xe1\xda\xf2\xe1\x75\xf3\xf0\xe1\x3f\x76\x78\xb4\xf3\x64\xf7\xc6\x7c\x7e\xd6\x69\x7e\x7b\xfa\x63\xff\xee\xd7\xf7\xf7\x0f\xcf\x4f\xaf\x8f\xc6\x7c\x79\x7e\x9b\x70\x58\x6e\xe5\xfa\x93\x7c\xdc\xdc\xd0\xf1\xf0\x7e\xfb\x70\x4d\x1d\x34\xf7\x93\xeb\x2d\x6d\x4f\xbd\xe7\xf9\xad\xda\x55\xab\x9b\xfe\x8f\xf7\xab\xbb\x7f\x03\x00\x00\xff\xff\x1e\x2f\x55\x8f\xb7\x08\x00\x00")
|
||||||
|
|
||||||
func runtimeSyntaxTclYamlBytes() ([]byte, error) {
|
func runtimeSyntaxTclYamlBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
@@ -3516,7 +3516,7 @@ func runtimeSyntaxViYaml() (*asset, error) {
|
|||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _runtimeSyntaxXmlYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xcd\x31\x0b\xc2\x30\x10\x05\xe0\x3d\xbf\xe2\x3c\x44\xb4\x90\xba\xa7\x62\x07\x75\xd6\xc1\x45\xda\x0a\xa5\xbd\x96\x40\x12\x4b\x12\xa1\x42\x7f\xbc\x84\x56\x87\x22\xbe\xf5\xdd\xfb\xae\x91\x8a\xfc\xab\x23\x01\xbd\x56\x8c\xd5\xe4\xa9\xf2\x82\x01\x00\x84\xca\x94\x9a\x04\x60\x9e\xc7\xeb\x5e\xab\xc1\xb5\x5a\xa5\x83\x35\xed\xd0\x29\xe9\xfc\x66\x89\x8c\xd9\xa7\x22\x37\x2e\x38\xc8\x9a\x8c\x97\x8d\x24\x2b\x00\x77\x71\x94\xee\x71\x6a\xaa\x87\xd6\x64\x26\x3a\xc4\xf9\xd2\xfa\x70\xb5\x38\x9e\x0f\xd7\xdb\xe5\x84\xdf\x8a\x4c\x2d\x00\xb3\x6d\xf1\x99\x87\x8c\x7f\x20\x2b\x66\x20\xfc\x10\x39\x9f\x63\x9c\xff\xa1\x5c\x47\x95\x2c\x95\x00\x5c\x65\xf7\xa4\x88\x12\x64\xef\x00\x00\x00\xff\xff\x1f\x6d\x27\xb2\x18\x01\x00\x00")
|
var _runtimeSyntaxXmlYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x8d\x31\x4b\xc7\x30\x10\x47\xf7\x7c\x8a\xf3\x10\xd1\x42\xea\x9e\xbf\xd8\x41\x9d\x75\x70\x91\xa6\x42\x68\xae\x35\x70\x89\x25\x89\x52\x21\x1f\x5e\x62\xd4\xc1\xc1\xff\xad\xef\xdd\xfb\x2d\x8e\x29\x7f\x6c\xa4\x60\xf7\x2c\x84\xa5\x4c\x73\x56\x02\x00\xa0\xa2\x60\x3c\x29\x40\xad\xfb\xf3\xdd\x73\x49\xab\xe7\xa1\xc4\xb0\x96\xf4\xbe\x96\x8d\x5d\xca\x17\xa7\xf8\x65\xbf\x90\xb1\x14\x15\xe0\x95\xd6\xc3\xee\xb9\xef\xb4\x1e\xae\x51\x88\xf8\xc6\x94\x5a\x51\x82\xb3\x14\xb2\x5b\x5c\x33\xfb\xae\x1a\x8d\xcc\xaf\xde\x53\xf8\x9e\xae\x97\xb2\x89\xb9\x5a\x27\xb7\xf7\x37\x8f\x4f\x0f\x77\xf8\x8b\x28\x58\x05\x38\x5e\x4e\x3f\xef\xf5\xda\x0e\x8c\xd3\xf1\xa0\x94\x7f\x5b\x52\xfe\x53\x4a\x1b\xcd\xce\xb0\x02\x3c\x1b\x9f\x0f\x53\x77\x40\xf1\x19\x00\x00\xff\xff\x14\xea\x3b\x00\x37\x01\x00\x00")
|
||||||
|
|
||||||
func runtimeSyntaxXmlYamlBytes() ([]byte, error) {
|
func runtimeSyntaxXmlYamlBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
filetype: xml
|
filetype: xml
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.(xml|sgml?|rng|plist)$"
|
filename: "\\.(xml|sgml?|rng|svg|plist)$"
|
||||||
|
header: "<\\?xml.*\\?>"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- identifier: "<.*?>"
|
- identifier: "<.*?>"
|
||||||
|
|||||||
Reference in New Issue
Block a user