config/syntax/XML strict.rb in ver-2010.02 vs config/syntax/XML strict.rb in ver-2010.08

- old
+ new

@@ -1,11 +1,11 @@ # Encoding: UTF-8 {fileTypes: [], foldingStartMarker: - /^\s*(<[^!?%\/](?!.+?(\/>|<\/.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))/, - foldingStopMarker: /^\s*(<\/[^>]+>|[\/%]>|-->)\s*$/, + /^\s*(?<_1><[^!?%\/](?!.+?(?<_2>\/>|<\/.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))/, + foldingStopMarker: /^\s*(?<_1><\/[^>]+>|[\/%]>|-->)\s*$/, keyEquivalent: "^~X", name: "XML strict", patterns: [{begin: /<\?/, captures: {0 => {name: "punctuation.definition.tag.xml"}}, @@ -13,11 +13,12 @@ name: "meta.tag.processing-instruction.xml"}, {begin: /<!/, captures: {0 => {name: "punctuation.definition.tag.xml"}}, end: ">", name: "meta.tag.sgml.xml"}, - {begin: /(<)(?:([-_[:alnum:]]+)((:)))?([-_.:[:alnum:]]+)/, + {begin: + /(?<_1><)(?:(?<_2>[-_[:alnum:]]+)(?<_3>(?<_4>:)))?(?<_5>[-_.:[:alnum:]]+)/, beginCaptures: {1 => {name: "punctuation.definition.tag.xml"}, 2 => {name: "entity.name.tag.namespace.xml"}, 3 => {name: "entity.name.tag.xml"}, 4 => {name: "punctuation.separator.namespace.xml"}, @@ -38,10 +39,11 @@ [{captures: {1 => {name: "entity.other.attribute-name.namespace.xml"}, 2 => {name: "entity.other.attribute-name.xml"}, 3 => {name: "punctuation.separator.namespace.xml"}, 4 => {name: "entity.other.attribute-name.localname.xml"}}, - match: /\s+(?:([-_a-zA-Z0-9]+)((:)))?([a-zA-Z-]+)=/}, + match: + /\s+(?:(?<_1>[-_a-zA-Z0-9]+)(?<_2>(?<_3>:)))?(?<_4>[a-zA-Z-]+)=/}, {begin: /"/, beginCaptures: {0 => {name: "punctuation.definition.string.begin.xml"}}, end: "\"", endCaptures: {0 => {name: "punctuation.definition.string.end.xml"}}, name: "string.quoted.double.xml"},