mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fixes #7115: [xml] does not work with characters other than the Latin
This commit is contained in:
parent
f5898acf16
commit
b0ffe29313
|
@ -22,7 +22,7 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(<\?)\s*([-_a-zA-Z\p{L}0-9]+)</string>
|
||||
<string>(<\?)\s*([-_\p{L}\d]+)</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -44,7 +44,7 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string> ([a-zA-Z\p{L}-]+)</string>
|
||||
<string> ([\p{L}-]+)</string>
|
||||
<key>name</key>
|
||||
<string>entity.other.attribute-name.xml</string>
|
||||
</dict>
|
||||
|
@ -60,7 +60,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(<!)(DOCTYPE)\s+([:a-zA-Z\p{L}_][:a-zA-Z\p{L}0-9_.-]*)</string>
|
||||
<string>(<!)(DOCTYPE)\s+([:\p{L}_][:\p{L}\d_.-]*)</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -109,7 +109,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(<)((?:([-_a-zA-Z\p{L}0-9]+)((:)))?([-_a-zA-Z\p{L}0-9:]+))(?=(\s[^>]*)?></\2>)</string>
|
||||
<string>(<)((?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+))(?=(\s[^>]*)?></\2>)</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -139,7 +139,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(>(<))/(?:([-_a-zA-Z\p{L}0-9]+)((:)))?([-_a-zA-Z\p{L}0-9:]+)(>)</string>
|
||||
<string>(>(<))/(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+)(>)</string>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -190,7 +190,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(</?)(?:([-_a-zA-Z\p{L}0-9]+)((:)))?([-_a-zA-Z\p{L}0-9:]+)</string>
|
||||
<string>(</?)(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+)</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -333,7 +333,7 @@
|
|||
<key>EntityDecl</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(<!)(ENTITY)\s+(%\s+)?([:a-zA-Z\p{L}_][:a-zA-Z\p{L}0-9_.-]*)(\s+(?:SYSTEM|PUBLIC)\s+)?</string>
|
||||
<string>(<!)(ENTITY)\s+(%\s+)?([:\p{L}_][:\p{L}\d_.-]*)(\s+(?:SYSTEM|PUBLIC)\s+)?</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -435,7 +435,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(&)([:a-zA-Z\p{L}_][:a-zA-Z\p{L}0-9_.-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)</string>
|
||||
<string>(&)([:\p{L}_][:\p{L}\d_.-]*|#[\d]+|#x[\da-fA-F]+)(;)</string>
|
||||
<key>name</key>
|
||||
<string>constant.character.entity.xml</string>
|
||||
</dict>
|
||||
|
@ -483,7 +483,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(%)([:a-zA-Z\p{L}_][:a-zA-Z\p{L}0-9_.-]*)(;)</string>
|
||||
<string>(%)([:\p{L}_][:\p{L}\d_.-]*)(;)</string>
|
||||
<key>name</key>
|
||||
<string>constant.character.parameter-entity.xml</string>
|
||||
</dict>
|
||||
|
@ -552,7 +552,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string> (?:([-_a-zA-Z\p{L}0-9]+)((:)))?([-_a-zA-Z\p{L}0-9]+)=</string>
|
||||
<string> (?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d]+)=</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string> (?:([-_a-zA-Z\p{L}0-9]+)((:)))?([a-zA-Z\p{L}-]+)</string>
|
||||
<string> (?:([-_\p{L}\d]+)((:)))?([\p{L}-]+)</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
|
|
Loading…
Reference in a new issue