mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
fixes #7115: [xml] does not work with characters other than the Latin
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user