mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"comments": {
|
|
"blockComment": [ "{{!--", "--}}" ]
|
|
},
|
|
"brackets": [
|
|
["<!--", "-->"],
|
|
["<", ">"],
|
|
["{{", "}}"],
|
|
["{{{", "}}}"],
|
|
["{", "}"],
|
|
["(", ")"]
|
|
],
|
|
"autoClosingPairs": [
|
|
{ "open": "{", "close": "}"},
|
|
{ "open": "[", "close": "]"},
|
|
{ "open": "(", "close": ")" },
|
|
{ "open": "'", "close": "'" },
|
|
{ "open": "\"", "close": "\"" }
|
|
],
|
|
"surroundingPairs": [
|
|
{ "open": "'", "close": "'" },
|
|
{ "open": "\"", "close": "\"" },
|
|
{ "open": "<", "close": ">" },
|
|
{ "open": "{", "close": "}" }
|
|
],
|
|
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)",
|
|
"onEnterRules": [
|
|
{
|
|
"beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!\\/)>)[^<]*$", "flags": "i" },
|
|
"afterText": { "pattern": "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>", "flags": "i" },
|
|
"action": {
|
|
"indent": "indentOutdent"
|
|
}
|
|
},
|
|
{
|
|
"beforeText": { "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))(\\w[\\w\\d]*)([^/>]*(?!\\/)>)[^<]*$", "flags": "i" },
|
|
"action": {
|
|
"indent": "indent"
|
|
}
|
|
}
|
|
],
|
|
}
|