Merge pull request #2883 from williamd1k0/master

Fix regex in .rpy disambiguate
This commit is contained in:
Arfon Smith
2016-03-17 17:32:32 -06:00

View File

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