Skip to content

Commit

Permalink
Solidity: Added sol alias (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed May 29, 2020
1 parent 55bf7ec commit 6352213
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions components.json
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
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
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
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.

0 comments on commit 6352213

Please sign in to comment.