From 8dc1fdeee0b8d8a331525f6423851e0d45f99da3 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Mon, 6 May 2013 11:36:04 +0200 Subject: [PATCH] Added support for Perl single-line comments. Multi-line POD comments in Perl are not supported for now; they are a little hairy and probably require a little extra work in order to be parsed correctly. --- comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment.py b/comment.py index 6f36cf2..e8cdb6f 100644 --- a/comment.py +++ b/comment.py @@ -23,7 +23,7 @@ __comment_begining__ = {"java": "/*", "c": "/*", "cpp": "/*", "h": "/*", "hpp": __comment_end__ = {"java": "*/", "c": "*/", "cpp": "*/", "h": "*/", "hpp": "*/", "py": "\"\"\"", "glsl": "*/", "rb": "=end", "js": "*/", "sql": "*/", "xml": "-->"} -__comment__ = {"java": "//", "c": "//", "cpp": "//", "h": "//", "hpp": "//", "py": "#", "glsl": "//", +__comment__ = {"java": "//", "c": "//", "cpp": "//", "h": "//", "hpp": "//", "pl": "#", "py": "#", "glsl": "//", "rb": "#", "js": "//", "sql": "--"} def is_comment(extension, string):