]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/shell.js
1 /*! `shell` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
7 Language: Shell Session
9 Author: TSUYUSATO Kitsune <make.just.on@gmail.com>
14 /** @type LanguageFn */
15 function shell(hljs
) {
17 name: 'Shell Session',
24 className: 'meta.prompt',
25 // We cannot add \s (spaces) in the regular expression otherwise it will be too broad and produce unexpected result.
26 // For instance, in the following example, it would match "echo /path/to/home >" as a prompt:
27 // echo /path/to/home > t.exe
28 begin: /^\s{0,3}[/~\w
\d
[\]()@-]*[>%$#][ ]?/,
42 hljs
.registerLanguage('shell', hljsGrammar
);