Merge pull request #1723 from techhat/pythonmultiline

Python also supports triple single-quotes for comments
This commit is contained in:
Arfon Smith
2015-01-24 10:54:30 -06:00
2 changed files with 4 additions and 1 deletions

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|