about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code/language-configuration-rustdoc.json
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2024-02-19 05:12:20 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2024-02-19 05:12:20 +0000
commite118c3e8af2ee5c0d20d21e8bf08c1a254a317fb (patch)
treecf3e5436c033a6b38daa21eb498b7f53d417936c /src/tools/rust-analyzer/editors/code/language-configuration-rustdoc.json
parent6b6da93e51851d098574b5e6f39b6d187e78f34a (diff)
parentd5735645753e990a72446094f703df9b5e421555 (diff)
Merge from rustc
Diffstat (limited to 'src/tools/rust-analyzer/editors/code/language-configuration-rustdoc.json')
-rw-r--r--src/tools/rust-analyzer/editors/code/language-configuration-rustdoc.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/language-configuration-rustdoc.json b/src/tools/rust-analyzer/editors/code/language-configuration-rustdoc.json
new file mode 100644
index 00000000000..c905d3b6067
--- /dev/null
+++ b/src/tools/rust-analyzer/editors/code/language-configuration-rustdoc.json
@@ -0,0 +1,37 @@
+{
+    "comments": {
+        "blockComment": ["<!--", "-->"]
+    },
+    "brackets": [
+        ["{", "}"],
+        ["[", "]"],
+        ["(", ")"]
+    ],
+    "colorizedBracketPairs": [],
+    "autoClosingPairs": [
+        { "open": "{", "close": "}" },
+        { "open": "[", "close": "]" },
+        { "open": "(", "close": ")" }
+    ],
+    "surroundingPairs": [
+        ["(", ")"],
+        ["[", "]"],
+        ["`", "`"],
+        ["_", "_"],
+        ["*", "*"],
+        ["{", "}"],
+        ["'", "'"],
+        ["\"", "\""]
+    ],
+    "folding": {
+        "offSide": true,
+        "markers": {
+            "start": "^\\s*<!--\\s*#?region\\b.*-->",
+            "end": "^\\s*<!--\\s*#?endregion\\b.*-->"
+        }
+    },
+    "wordPattern": {
+        "pattern": "(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})(((\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})|[_])?(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark}))*",
+        "flags": "ug"
+    }
+}