mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +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 | ||||||
|     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| |     disambiguate ".r" do |data| | ||||||
|       if /\bRebol\b/i.match(data) |       if /\bRebol\b/i.match(data) | ||||||
|         Language["Rebol"] |         Language["Rebol"] | ||||||
|   | |||||||
| @@ -3853,6 +3853,7 @@ XML: | |||||||
|   - .osm |   - .osm | ||||||
|   - .plist |   - .plist | ||||||
|   - .pluginspec |   - .pluginspec | ||||||
|  |   - .props | ||||||
|   - .ps1xml |   - .ps1xml | ||||||
|   - .psc1 |   - .psc1 | ||||||
|   - .pt |   - .pt | ||||||
|   | |||||||
							
								
								
									
										29
									
								
								samples/XML/Default.props
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								samples/XML/Default.props
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | |||||||
|  | <!-- | ||||||
|  | *********************************************************************************************** | ||||||
|  | Default.props | ||||||
|  |  | ||||||
|  | WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | ||||||
|  |           created a backup copy.  Incorrect changes to this file will make it | ||||||
|  |           impossible to load or build your projects from the command-line or the IDE. | ||||||
|  |  | ||||||
|  | Copyright (C) Microsoft Corporation. All rights reserved. | ||||||
|  | *********************************************************************************************** | ||||||
|  | --> | ||||||
|  |  | ||||||
|  | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||||
|  |  | ||||||
|  |   <!-- Import Before --> | ||||||
|  |   <Import Condition="Exists('$(MSBuildThisFileDirectory)ImportBefore\Default')" Project="$(MSBuildThisFileDirectory)ImportBefore\Default\*.props" /> | ||||||
|  |    | ||||||
|  |   <PropertyGroup> | ||||||
|  |     <TargetOsAndVersion>Windows Phone Silverlight 8.1</TargetOsAndVersion> | ||||||
|  |     <RealOSVersion>6.3</RealOSVersion> | ||||||
|  |     <PlatformToolset Condition="'$(PlatformToolset)' == ''">v120</PlatformToolset> | ||||||
|  |  | ||||||
|  |     <_PlatformToolsetFriendlyNameFor_v120>Windows Phone Silverlight 8.1 (v120)</_PlatformToolsetFriendlyNameFor_v120> | ||||||
|  |     <_PlatformToolsetShortNameFor_v120>Windows Phone Silverlight 8.1</_PlatformToolsetShortNameFor_v120> | ||||||
|  |   </PropertyGroup> | ||||||
|  |  | ||||||
|  |   <!-- Import After --> | ||||||
|  |   <Import Condition="Exists('$(MSBuildThisFileDirectory)ImportAfter\Default')" Project="$(MSBuildThisFileDirectory)ImportAfter\Default\*.props" /> | ||||||
|  | </Project> | ||||||
		Reference in New Issue
	
	Block a user