Python also supports triple single-quotes for comments

This commit is contained in:
Joseph Hall
2014-11-16 07:19:55 -07:00
parent fcbef97e39
commit 7702583314

View File

@@ -33,7 +33,8 @@ module Linguist
['<!--', '-->'], # XML
['{-', '-}'], # Haskell
['(*', '*)'], # Coq
['"""', '"""'] # Python
['"""', '"""'], # Python
["'''", "'''"] # Python
]
START_SINGLE_LINE_COMMENT = Regexp.compile(SINGLE_LINE_COMMENTS.map { |c|