Add class and def to regex

This commit is contained in:
William Tumeo
2016-02-27 23:55:53 -03:00
parent 07f5ad1daa
commit 40413dfcc7

View File

@@ -322,7 +322,7 @@ module Linguist
end
disambiguate ".rpy" do |data|
if /(^(import|from)[\s\S])/m.match(data)
if /(^(import|from|class|def)[\s\S])/m.match(data)
Language["Python"]
else
Language["Ren'Py"]