From a9d519c93be6e9fb28ed8164a8da75425cdd6c73 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Thu, 17 Dec 2015 03:15:22 +0100 Subject: [PATCH] Recognize Rust programming language (.rs) comments (#83). --- gitinspector/comment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitinspector/comment.py b/gitinspector/comment.py index ea68c54..2df26d1 100644 --- a/gitinspector/comment.py +++ b/gitinspector/comment.py @@ -30,8 +30,9 @@ __comment_end__ = {"java": "*/", "c": "*/", "cc": "*/", "cpp": "*/", "cs": "*/", "go": "*/", "ly": "%}", "ily": "%}"} __comment__ = {"java": "//", "c": "//", "cc": "//", "cpp": "//", "cs": "//", "h": "//", "hh": "//", "hpp": "//", "hs": "--", - "pl": "#", "php": "//", "py": "#", "glsl": "//", "rb": "#", "robot": "#", "js": "//", "scala": "//", "sql": "--", - "tex": "%", "ada": "--", "ads": "--", "adb": "--", "pot": "#", "po": "#", "go": "//", "ly": "%", "ily": "%"} + "pl": "#", "php": "//", "py": "#", "glsl": "//", "rb": "#", "robot": "#", "rs": "//", "rlib": "//", "js": "//", + "scala": "//", "sql": "--", "tex": "%", "ada": "--", "ads": "--", "adb": "--", "pot": "#", "po": "#", "go": "//", + "ly": "%", "ily": "%"} __comment_markers_must_be_at_begining__ = {"tex": True}