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
|
end
|
||||||
|
|
||||||
disambiguate ".rpy" do |data|
|
disambiguate ".rpy" do |data|
|
||||||
if /(^(import|from)[\s\S])/m.match(data)
|
if /(^(import|from|class|def)[\s\S])/m.match(data)
|
||||||
Language["Python"]
|
Language["Python"]
|
||||||
else
|
else
|
||||||
Language["Ren'Py"]
|
Language["Ren'Py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user