From 659e2d0d6c677f78e0923783c18cf1be5b05cfc5 Mon Sep 17 00:00:00 2001 From: Tom Jakubowski Date: Wed, 19 Sep 2018 12:59:01 -0700 Subject: [PATCH] rust: account for doc comment syntax Rust has two flavors of comment, the plain line comment (`//`) and the doc comment (`///`). Rustdoc, the native documentation tool, renders only doc comments (`///`). docco now searches for both `//` comments and `///` comments in Rust source files. Previously, it had only searched for `//` comments, so `///` comments were rendered with an ugly superfluous `/` at the start of their content. --- resources/languages.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/languages.json b/resources/languages.json index 63586ee2..1cf107d4 100644 --- a/resources/languages.json +++ b/resources/languages.json @@ -78,8 +78,8 @@ ".vim": {"name": "vim", "symbol": "\""}, ".vue": {"name": "vuejs", "symbol": "//"}, ".r": {"name": "r", "symbol": "#"}, - ".rc": {"name": "rust", "symbol": "//"}, - ".rs": {"name": "rust", "symbol": "//"}, + ".rc": {"name": "rust", "symbol": "///?"}, + ".rs": {"name": "rust", "symbol": "///?"}, ".wsc": {"name": "vbscript", "symbol": "'"}, ".wsf": {"name": "vbscript", "symbol": "'"}, ".yaml": {"name": "yaml", "symbol": "#"}