Skip to content

Commit

Permalink
more shells
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Apr 29, 2020
1 parent edaefb7 commit 111e46d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/languages/bash.js
Expand Up @@ -55,8 +55,19 @@ export default function(hljs) {
VAR
]
};
const SH_LIKE_SHELLS = [
"fish",
"bash",
"zsh",
"sh",
"csh",
"ksh",
"tcsh",
"dash",
"scsh",
];
const SHEBANG = hljs.SHEBANG({
binary: /(fish|bash|zsh|sh)/,
binary: `(${SH_LIKE_SHELLS.join("|")})`,
relevance: 10
});
const FUNCTION = {
Expand Down

0 comments on commit 111e46d

Please sign in to comment.