mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 12:28:47 +00:00
Merge pull request #2866 from jasonwilliams200OK/master
Classification of props file
This commit is contained in:
@@ -313,6 +313,14 @@ module Linguist
|
||||
end
|
||||
end
|
||||
|
||||
disambiguate ".props" do |data|
|
||||
if /^(\s*)(<Project|<Import|<Property|<?xml|xmlns)/i.match(data)
|
||||
Language["XML"]
|
||||
elsif /\w+\s*=\s*/i.match(data)
|
||||
Language["INI"]
|
||||
end
|
||||
end
|
||||
|
||||
disambiguate ".r" do |data|
|
||||
if /\bRebol\b/i.match(data)
|
||||
Language["Rebol"]
|
||||
|
||||
@@ -3853,6 +3853,7 @@ XML:
|
||||
- .osm
|
||||
- .plist
|
||||
- .pluginspec
|
||||
- .props
|
||||
- .ps1xml
|
||||
- .psc1
|
||||
- .pt
|
||||
|
||||
Reference in New Issue
Block a user