Skip to content

Commit

Permalink
Markup & JSON: Added new aliases (#2390)
Browse files Browse the repository at this point in the history
This adds the `rss` and `atom` alias for Markup and the `webmanifest` alias for JSON.
  • Loading branch information
valtlai authored May 17, 2020
1 parent 4935b5c commit 9782cfe
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@
},
"markup": {
"title": "Markup",
"alias": ["html", "xml", "svg", "mathml", "ssml"],
"alias": ["html", "xml", "svg", "mathml", "ssml", "atom", "rss"],
"aliasTitles": {
"html": "HTML",
"xml": "XML",
"svg": "SVG",
"mathml": "MathML",
"ssml": "SSML"
"ssml": "SSML",
"atom": "Atom",
"rss": "RSS"
},
"option": "default"
},
Expand Down Expand Up @@ -560,6 +562,10 @@
},
"json": {
"title": "JSON",
"alias": "webmanifest",
"aliasTitles": {
"webmanifest": "Web App Manifest"
},
"owner": "CupOfTea696"
},
"jsonp": {
Expand Down
2 changes: 2 additions & 0 deletions components/prism-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ Prism.languages.json = {
alias: 'keyword'
}
};

Prism.languages.webmanifest = Prism.languages.json;
2 changes: 1 addition & 1 deletion components/prism-json.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 components/prism-markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,5 @@ Prism.languages.svg = Prism.languages.markup;

Prism.languages.xml = Prism.languages.extend('markup', {});
Prism.languages.ssml = Prism.languages.xml;
Prism.languages.atom = Prism.languages.xml;
Prism.languages.rss = Prism.languages.xml;
2 changes: 1 addition & 1 deletion components/prism-markup.min.js

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

3 changes: 3 additions & 0 deletions plugins/autoloader/prism-autoloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
"svg": "markup",
"mathml": "markup",
"ssml": "markup",
"atom": "markup",
"rss": "markup",
"js": "javascript",
"g4": "antlr4",
"adoc": "asciidoc",
Expand All @@ -169,6 +171,7 @@
"xls": "excel-formula",
"gamemakerlanguage": "gml",
"hs": "haskell",
"webmanifest": "json",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"svg": "SVG",
"mathml": "MathML",
"ssml": "SSML",
"rss": "RSS",
"css": "CSS",
"clike": "C-like",
"js": "JavaScript",
Expand Down Expand Up @@ -89,6 +90,7 @@
"js-extras": "JS Extras",
"js-templates": "JS Templates",
"json": "JSON",
"webmanifest": "Web App Manifest",
"jsonp": "JSONP",
"json5": "JSON5",
"latex": "LaTeX",
Expand Down
Loading

0 comments on commit 9782cfe

Please sign in to comment.