mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #2883 from williamd1k0/master
Fix regex in .rpy disambiguate
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user