Fix XML highlighting when tags are spread on multiple lines

This commit is contained in:
ariasuni 2019-01-11 03:00:32 +01:00
parent aaac5466d1
commit daa0d67c6f
2 changed files with 5 additions and 2 deletions

View File

@ -3516,7 +3516,7 @@ func runtimeSyntaxViYaml() (*asset, error) {
return a, nil
}
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")
var _runtimeSyntaxXmlYaml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\xcd\x31\x4b\xc6\x30\x10\x06\xe0\x3d\xbf\xe2\x3c\x44\xf4\x83\x7c\xee\xa9\xd8\x41\x9d\x75\x70\x91\xa6\x42\x68\xae\x35\x70\x89\x25\x89\x52\x21\x3f\x5e\x62\xd5\xa1\x48\xbd\xf1\xde\xbb\xe7\x1d\x1d\x53\xfe\x98\x49\xc1\xe2\x59\x08\x4b\x99\x86\xac\x04\x00\x40\x8d\x82\xf1\xa4\x00\xb5\x3e\x9e\x2f\x9e\x4b\x9a\x3c\xb7\x25\x86\xa9\xa4\xf7\xa9\xcc\xec\x52\xbe\x38\xc5\xaf\xeb\x17\x32\x96\xa2\x02\xbc\xd2\xba\x5d\x3c\x1f\x0f\x5a\xb7\xd7\x28\x44\x7c\x63\x4a\xab\x28\x61\x78\xf5\x9e\xc2\x77\x41\x9d\x94\x4d\xcc\xf5\xeb\xe4\xf6\xfe\xe6\xf1\xe9\xe1\x0e\x7f\x23\x0a\x56\x01\x76\x97\x7d\x65\x7e\x96\xab\x06\x5d\xff\x3f\x28\xe5\xd6\x92\x72\x47\x72\x96\x42\x76\xa3\xa3\xf8\x07\xb6\x95\x76\x9c\x34\xd3\xe0\x0c\x2b\xc0\xb3\xee\xb9\xe9\x0f\x0d\x8a\xcf\x00\x00\x00\xff\xff\x4f\xfd\x19\x8d\x65\x01\x00\x00")
func runtimeSyntaxXmlYamlBytes() ([]byte, error) {
return bindataRead(

View File

@ -5,7 +5,6 @@ detect:
header: "<\\?xml.*\\?>"
rules:
- identifier: "<.*?>"
- comment:
start: "<!DOCTYPE"
end: "[/]?>"
@ -14,4 +13,8 @@ rules:
start: "<!--"
end: "-->"
rules: []
- identifier:
start: "<"
end: ">"
rules: []
- special: "&[^;]*;"