basant307/AI_Governance_Project
048
1/*2Language: Shell Session3Requires: bash.js4Author: TSUYUSATO Kitsune <make.just.on@gmail.com>5Category: common6Audit: 20207*/8 9/** @type LanguageFn */10function shell(hljs) {11 return {12 name: 'Shell Session',13 aliases: [14 'console',15 'shellsession'16 ],17 contains: [18 {19 className: 'meta.prompt',20 // We cannot add \s (spaces) in the regular expression otherwise it will be too broad and produce unexpected result.21 // For instance, in the following example, it would match "echo /path/to/home >" as a prompt:22 // echo /path/to/home > t.exe23 begin: /^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,24 starts: {25 end: /[^\\](?=\s*$)/,26 subLanguage: 'bash'27 }28 }29 ]30 };31}32 33export { shell as default };34 