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

Solidity: Added sol alias #2382

Merged
merged 2 commits into from
May 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion components.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@
},
"solidity": {
"title": "Solidity (Ethereum)",
"alias": "sol",
"require": "clike",
"owner": "glachaud"
},
Expand Down
2 changes: 2 additions & 0 deletions components/prism-solidity.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ Prism.languages.insertBefore('solidity', 'number', {
alias: 'number',
}
});

Prism.languages.sol = Prism.languages.solidity;
2 changes: 1 addition & 1 deletion components/prism-solidity.min.js

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

1 change: 1 addition & 0 deletions plugins/autoloader/prism-autoloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
"rpy": "renpy",
"robot": "robotframework",
"rb": "ruby",
"sol": "solidity",
"sln": "solution-file",
"rq": "sparql",
"trig": "turtle",
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.

1 change: 1 addition & 0 deletions plugins/show-language/prism-show-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
"scss": "Sass (Scss)",
"shell-session": "Shell session",
"solidity": "Solidity (Ethereum)",
"sol": "Solidity (Ethereum)",
"solution-file": "Solution file",
"sln": "Solution file",
"soy": "Soy (Closure Template)",
Expand Down
2 changes: 1 addition & 1 deletion plugins/show-language/prism-show-language.min.js

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