From 0bc28d9424b8fc6ed9336bc7b2f84d03ee37ed55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=BD?= Date: Fri, 19 Apr 2013 15:33:02 +0800 Subject: [PATCH] added multi line comment flag for python --- lib/linguist/tokenizer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/linguist/tokenizer.rb b/lib/linguist/tokenizer.rb index c600f7af..4b2ea607 100644 --- a/lib/linguist/tokenizer.rb +++ b/lib/linguist/tokenizer.rb @@ -32,7 +32,8 @@ module Linguist ['/*', '*/'], # C [''], # XML ['{-', '-}'], # Haskell - ['(*', '*)'] # Coq + ['(*', '*)'], # Coq + ['"""', '"""'] # Python ] START_SINGLE_LINE_COMMENT = Regexp.compile(SINGLE_LINE_COMMENTS.map { |c|