Investigate potential rst grammar to include as a built-in extension (#144680)

This commit is contained in:
Alex Ross
2022-03-10 15:07:28 +01:00
committed by GitHub
parent ced1b62449
commit c2b51748cf
9 changed files with 2228 additions and 0 deletions

View 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-]*"
}