diff --git a/syntax_files/xml.yaml b/syntax_files/xml.yaml index dbc9951..510bd12 100644 --- a/syntax_files/xml.yaml +++ b/syntax_files/xml.yaml @@ -2,9 +2,14 @@ filetype: xml detect: filename: "\\.(xml|sgml?|rng|plist)$" + header: "(" + - type: "(<(/)?[a-zA-Z:]+>)" + - type: "(<(/)?[a-zA-Z:]+[[:space:]]+)" + - constant.specialChar: '[a-zA-Z0-9]+="(.*)+"' + - statement: '([a-zA-Z0-9]+)=' + - type: "(([[:space:]])?/?>([[:space:]]+)?$)" - comment: start: ""