mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Investigate potential rst grammar to include as a built-in extension (#144680)
This commit is contained in:
34
extensions/restructuredtext/language-configuration.json
Normal file
34
extensions/restructuredtext/language-configuration.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": ".."
|
||||
},
|
||||
"brackets": [
|
||||
["(", ")"],
|
||||
["<", ">"],
|
||||
["[", "]"]
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["(", ")"],
|
||||
["<", ">"],
|
||||
["`", "`"],
|
||||
["*", "*"],
|
||||
["|", "|"],
|
||||
["[", "]"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
{ "open": "(", "close": ")" },
|
||||
{ "open": "<", "close": ">" },
|
||||
{ "open": "'", "close": "'"},
|
||||
{ "open": "`", "close": "`", "notIn": ["string"]},
|
||||
{ "open": "\"", "close": "\""},
|
||||
{ "open": "[", "close": "]"}
|
||||
],
|
||||
"autoCloseBefore": ":})>`\\n ",
|
||||
"onEnterRules": [
|
||||
{
|
||||
"beforeText": "^\\s*\\.\\. *$|(?<!:)::(\\s|$)",
|
||||
"action": { "indent": "indent" }
|
||||
}
|
||||
],
|
||||
"wordPattern": "[\\w-]*\\w[\\w-]*"
|
||||
}
|
||||
Reference in New Issue
Block a user