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