diff --git a/Syntaxes/XML.plist b/Syntaxes/XML.plist index 062d5a5..e11d5ac 100644 --- a/Syntaxes/XML.plist +++ b/Syntaxes/XML.plist @@ -22,7 +22,7 @@ begin - (<\?)\s*([-_a-zA-Z0-9]+) + (<\?)\s*([-_\p{L}\d]+) captures 1 @@ -44,7 +44,7 @@ match - ([a-zA-Z-]+) + ([\p{L}-]+) name entity.other.attribute-name.xml @@ -60,7 +60,7 @@ begin - (<!)(DOCTYPE)\s+([:a-zA-Z_][:a-zA-Z0-9_.-]*) + (<!)(DOCTYPE)\s+([:\p{L}_][:\p{L}\d_.-]*) captures 1 @@ -109,7 +109,7 @@ begin - (<)((?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+))(?=(\s[^>]*)?></\2>) + (<)((?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+))(?=(\s[^>]*)?></\2>) beginCaptures 1 @@ -139,7 +139,7 @@ end - (>(<))/(?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+)(>) + (>(<))/(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+)(>) endCaptures 1 @@ -190,7 +190,7 @@ begin - (</?)(?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+) + (</?)(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+) captures 1 @@ -333,7 +333,7 @@ EntityDecl begin - (<!)(ENTITY)\s+(%\s+)?([:a-zA-Z_][:a-zA-Z0-9_.-]*)(\s+(?:SYSTEM|PUBLIC)\s+)? + (<!)(ENTITY)\s+(%\s+)?([:\p{L}_][:\p{L}\d_.-]*)(\s+(?:SYSTEM|PUBLIC)\s+)? captures 1 @@ -435,7 +435,7 @@ match - (&)([:a-zA-Z_][:a-zA-Z0-9_.-]*|#[0-9]+|#x[0-9a-fA-F]+)(;) + (&)([:\p{L}_][:\p{L}\d_.-]*|#[\d]+|#x[\da-fA-F]+)(;) name constant.character.entity.xml @@ -483,7 +483,7 @@ match - (%)([:a-zA-Z_][:a-zA-Z0-9_.-]*)(;) + (%)([:\p{L}_][:\p{L}\d_.-]*)(;) name constant.character.parameter-entity.xml @@ -552,7 +552,7 @@ match - (?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9]+)= + (?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d]+)= include