Merge pull request #2388 from mephaust/add-unity3d

Add Unity3D Asset and Metadata files
This commit is contained in:
Arfon Smith
2015-05-13 16:02:30 -05:00
8 changed files with 385 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ module Linguist
generated_protocol_buffer_go? ||
generated_protocol_buffer? ||
generated_jni_header? ||
generated_unity3d_meta? ||
vcr_cassette?
end
@@ -311,5 +312,18 @@ module Linguist
return false unless lines.count > 1
return lines[0].include?("Generated by Cython")
end
# Internal: Is this a metadata file from Unity3D?
#
# Unity3D Meta files start with:
# fileFormatVersion: X
# guid: XXXXXXXXXXXXXXX
#
# Return true or false
def generated_unity3d_meta?
return false unless extname == '.meta'
return false unless lines.count > 1
return lines[0].include?("fileFormatVersion: ")
end
end
end

View File

@@ -3290,6 +3290,19 @@ Unified Parallel C:
- .upc
tm_scope: source.c
Unity3D Asset:
type: data
ace_mode: yaml
color: "#ab69a1"
extensions:
- .anim
- .asset
- .mat
- .meta
- .prefab
- .unity
tm_scope: source.yaml
UnrealScript:
type: programming
color: "#a54c4d"