Skip to content

Commit

Permalink
Kotlin: Added kt and kts aliases (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Jul 13, 2020
1 parent 4028520 commit 67f97e2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions components.json
Expand Up @@ -597,6 +597,10 @@
},
"kotlin": {
"title": "Kotlin",
"alias": ["kt", "kts"],
"aliasTitles": {
"kts": "Kotlin Script"
},
"require": "clike",
"owner": "Golmote"
},
Expand Down
2 changes: 2 additions & 0 deletions components/prism-kotlin.js
Expand Up @@ -59,4 +59,6 @@
interpolation: interpolation
};

Prism.languages.kt = Prism.languages.kotlin;
Prism.languages.kts = Prism.languages.kotlin;
}(Prism));
2 changes: 1 addition & 1 deletion components/prism-kotlin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions plugins/autoloader/prism-autoloader.js
Expand Up @@ -172,6 +172,8 @@
"gamemakerlanguage": "gml",
"hs": "haskell",
"webmanifest": "json",
"kt": "kotlin",
"kts": "kotlin",
"tex": "latex",
"context": "latex",
"ly": "lilypond",
Expand Down
2 changes: 1 addition & 1 deletion plugins/autoloader/prism-autoloader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions plugins/show-language/prism-show-language.js
Expand Up @@ -94,6 +94,8 @@
"jsonp": "JSONP",
"jsstacktrace": "JS stack trace",
"js-templates": "JS Templates",
"kts": "Kotlin Script",
"kt": "Kotlin",
"latex": "LaTeX",
"tex": "TeX",
"context": "ConTeXt",
Expand Down

0 comments on commit 67f97e2

Please sign in to comment.