mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add class and def to regex
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user