Merge pull request #127334 from datho7561/127323-xml-word-pattern
Add `wordPattern` for XML and XSL languages
This commit is contained in:
commit
28383a32e2
2 changed files with 9 additions and 1 deletions
|
@ -30,5 +30,9 @@
|
||||||
"start": "^\\s*<!--\\s*#region\\b.*-->",
|
"start": "^\\s*<!--\\s*#region\\b.*-->",
|
||||||
"end": "^\\s*<!--\\s*#endregion\\b.*-->"
|
"end": "^\\s*<!--\\s*#endregion\\b.*-->"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"wordPattern": {
|
||||||
|
"pattern": "[:A-Z_a-z\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2FF}\\u{370}-\\u{37D}\\u{37F}-\\u{1FFF}\\u{200C}-\\u{200D}\\u{2070}-\\u{218F}\\u{2C00}-\\u{2FEF}\\u{3001}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFFD}\\u{10000}-\\u{EFFFF}][-:A-Z_a-z\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2FF}\\u{370}-\\u{37D}\\u{37F}-\\u{1FFF}\\u{200C}-\\u{200D}\\u{2070}-\\u{218F}\\u{2C00}-\\u{2FEF}\\u{3001}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFFD}\\u{10000}-\\u{EFFFF}.0-9\\u{B7}\\u{0300}-\\u{036F}\\u{203F}-\\u{2040}]*",
|
||||||
|
"flags": "u"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
["{", "}"],
|
["{", "}"],
|
||||||
["(", ")"],
|
["(", ")"],
|
||||||
["[", "]"]
|
["[", "]"]
|
||||||
]
|
],
|
||||||
|
"wordPattern": {
|
||||||
|
"pattern": "[:A-Z_a-z\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2FF}\\u{370}-\\u{37D}\\u{37F}-\\u{1FFF}\\u{200C}-\\u{200D}\\u{2070}-\\u{218F}\\u{2C00}-\\u{2FEF}\\u{3001}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFFD}\\u{10000}-\\u{EFFFF}][-:A-Z_a-z\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2FF}\\u{370}-\\u{37D}\\u{37F}-\\u{1FFF}\\u{200C}-\\u{200D}\\u{2070}-\\u{218F}\\u{2C00}-\\u{2FEF}\\u{3001}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFFD}\\u{10000}-\\u{EFFFF}.0-9\\u{B7}\\u{0300}-\\u{036F}\\u{203F}-\\u{2040}]*",
|
||||||
|
"flags": "u"
|
||||||
|
}
|
||||||
|
|
||||||
// enhancedBrackets: [{
|
// enhancedBrackets: [{
|
||||||
// tokenType: 'tag.tag-$1.xml',
|
// tokenType: 'tag.tag-$1.xml',
|
||||||
|
|
Loading…
Reference in a new issue