From 6af499e3525a69f95b896793ae9138641d00fea6 Mon Sep 17 00:00:00 2001 From: Peter Jas Date: Sun, 6 Mar 2016 20:18:57 +0000 Subject: [PATCH] Classification of props file * Initially treat as XML * Disambiguate from ini (key-value pair style with `=`) * If the file is neither XML-style nor INI, classify as SQL --- lib/linguist/heuristics.rb | 8 ++++++++ lib/linguist/languages.yml | 1 + samples/XML/Default.props | 29 +++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 samples/XML/Default.props diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index 0806ce1f..b8e9c2fb 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -313,6 +313,14 @@ module Linguist end end + disambiguate ".props" do |data| + if /^(\s*)( + + + + + + + + Windows Phone Silverlight 8.1 + 6.3 + v120 + + <_PlatformToolsetFriendlyNameFor_v120>Windows Phone Silverlight 8.1 (v120) + <_PlatformToolsetShortNameFor_v120>Windows Phone Silverlight 8.1 + + + + +