Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unity3D Asset and Metadata files #2388

Merged
merged 4 commits into from
May 13, 2015

Conversation

mephaust
Copy link
Contributor

@mephaust mephaust commented May 9, 2015

Examples of in-the-wild usage on GitHub:

- .unity
tm_scope: source.yaml

Unity3D Metadata:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you want to make a separate language for Unity3D Metadata? It looks like it has the same YAML syntax as the other files...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good point. I'll fold it in.

@mephaust
Copy link
Contributor Author

mephaust commented May 9, 2015

@pchaigno Updated with *.meta as part of the Unity3D Asset language definition.

# Return true or false
def generated_unity3d_meta?
return false unless extname == '.meta'
return lines[0].include?("fileFormatVersion: ")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should check for the number of lines: return false unless lines.count > 1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mephaust
Copy link
Contributor Author

@pchaigno @arfon Added the line count check to generated_unity3d_meta and stuck it in the relevant commit.

@arfon
Copy link
Contributor

arfon commented May 13, 2015

Thanks for this @mephaust. For good housekeeping would you mind adding an example file for each of the extensions as you have for .meta

@mephaust
Copy link
Contributor Author

@arfon Added more samples.

@arfon
Copy link
Contributor

arfon commented May 13, 2015

👍 thanks @mephaust. This looks good to go.

@arfon arfon closed this May 13, 2015
@arfon arfon reopened this May 13, 2015
arfon added a commit that referenced this pull request May 13, 2015
Add Unity3D Asset and Metadata files
@arfon arfon merged commit da7d019 into github-linguist:master May 13, 2015
@arfon
Copy link
Contributor

arfon commented May 13, 2015

These changes should be live in GitHub on the next release of Linguist

@arfon arfon mentioned this pull request May 15, 2015
@edm00se edm00se mentioned this pull request Jun 5, 2015
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants