mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
[XML] Use the same HTML language configuration for XML
This PR is a copy/paste of the HTML language configuration to have for instance autoClosingPairs for Comments and adds autoClosingPairs for CDATA.
This commit is contained in:
parent
4deeb958f2
commit
ce7f99fa96
|
@ -1,31 +1,34 @@
|
||||||
{
|
{
|
||||||
"comments": {
|
"comments": {
|
||||||
"lineComment": "",
|
"blockComment": [ "<!--", "-->" ]
|
||||||
"blockComment": ["<!--", "-->"]
|
|
||||||
},
|
},
|
||||||
"brackets": [
|
"brackets": [
|
||||||
["<", ">"]
|
["<!--", "-->"],
|
||||||
|
["<", ">"],
|
||||||
|
["{", "}"],
|
||||||
|
["(", ")"]
|
||||||
],
|
],
|
||||||
"autoClosingPairs": [
|
"autoClosingPairs": [
|
||||||
["<", ">"],
|
{ "open": "{", "close": "}"},
|
||||||
["'", "'"],
|
{ "open": "[", "close": "]"},
|
||||||
["\"", "\""]
|
{ "open": "(", "close": ")" },
|
||||||
|
{ "open": "'", "close": "'" },
|
||||||
|
{ "open": "\"", "close": "\"" },
|
||||||
|
{ "open": "<!--", "close": "-->", "notIn": [ "comment", "string" ]},
|
||||||
|
{ "open": "<![CDATA[", "close": "]]>", "notIn": [ "comment", "string" ]}
|
||||||
],
|
],
|
||||||
"surroundingPairs": [
|
"surroundingPairs": [
|
||||||
["<", ">"],
|
{ "open": "'", "close": "'" },
|
||||||
["'", "'"],
|
{ "open": "\"", "close": "\"" },
|
||||||
["\"", "\""]
|
{ "open": "{", "close": "}"},
|
||||||
]
|
{ "open": "[", "close": "]"},
|
||||||
|
{ "open": "(", "close": ")" },
|
||||||
// enhancedBrackets: [{
|
{ "open": "<", "close": ">" }
|
||||||
// tokenType: 'tag.tag-$1.xml',
|
],
|
||||||
// openTrigger: '>',
|
"folding": {
|
||||||
// open: /<(\w[\w\d]*)([^\/>]*(?!\/)>)[^<>]*$/i,
|
"markers": {
|
||||||
// closeComplete: '</$1>',
|
"start": "^\\s*<!--\\s*#region\\b.*-->",
|
||||||
// closeTrigger: '>',
|
"end": "^\\s*<!--\\s*#endregion\\b.*-->"
|
||||||
// close: /<\/(\w[\w\d]*)\s*>$/i
|
}
|
||||||
// }],
|
}
|
||||||
|
|
||||||
// autoClosingPairs: [['\'', '\''], ['"', '"'] ]
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue