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

Show language improvements #1683

Merged
merged 2 commits into from
Jan 22, 2019
Merged

Conversation

RunDevelopment
Copy link
Member

This PR fixes the bug that aliases without a title (e.g. js for JavaScript) were not included in the language map.

It also improves the guessing of a language's title by capitalizing 'script' to correctly guess ActionScript, AppleScript, CoffeeScript, JavaScript, LiveScript, and TypeScript.


for (var name in data.languages[p].aliasTitles) {
languagesMap[name] = data.languages[p].aliasTitles[name];
addLanguageTitle(name, data.languages[p].aliasTitles[name]);
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we just want to run this through addLanguageTitle, as we do want to add the name even if the guessed title doesn't match the title.

Copy link
Member

Choose a reason for hiding this comment

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

Oh wait, this is the gulpfile, not show-language,

Copy link
Member

@mAAdhaTTah mAAdhaTTah left a comment

Choose a reason for hiding this comment

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

You can merge after you resolve the conflicts.

@RunDevelopment
Copy link
Member Author

This also includes a different version of java.min.js. I don't know why uglify chooses different variables names, but those are the ones you get with a fresh installation, so it should be alright, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants