diff options
| author | YouWei Zhao <zhao.uv@gmail.com> | 2024-01-10 21:55:41 +0800 |
|---|---|---|
| committer | YouWei Zhao <zhao.uv@gmail.com> | 2024-01-10 21:55:41 +0800 |
| commit | 0380d982f9cf6cd49de3ea009f37bdc18e30e81f (patch) | |
| tree | 3e6afbf36e7da433d70cc1458b349b20c6d8fdf9 /editors/code/package.json | |
| parent | 1c9bb3197048a63fefaa53866764d296dc3bd7c2 (diff) | |
highlight rustdoc
Diffstat (limited to 'editors/code/package.json')
| -rw-r--r-- | editors/code/package.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 8307f6833e6..351370a0967 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -1729,6 +1729,13 @@ "rs" ], "configuration": "language-configuration.json" + }, + { + "id": "rustdoc", + "extensions": [ + ".rustdoc" + ], + "configuration": "./language-configuration-rustdoc.json" } ], "grammars": [ @@ -1736,6 +1743,27 @@ "language": "ra_syntax_tree", "scopeName": "source.ra_syntax_tree", "path": "ra_syntax_tree.tmGrammar.json" + }, + { + "language": "rustdoc", + "scopeName": "text.html.markdown.rustdoc", + "path": "rustdoc.json", + "embeddedLanguages": { + "meta.embedded.block.html": "html", + "meta.embedded.block.markdown": "markdown", + "meta.embedded.block.rust": "rust" + } + }, + { + "injectTo": [ + "source.rust" + ], + "scopeName": "comment.markdown-cell-inject.rustdoc", + "path": "rustdoc-inject.json", + "embeddedLanguages": { + "meta.embedded.block.rustdoc": "rustdoc", + "meta.embedded.block.rust": "rust" + } } ], "problemMatchers": [ |
