shell.js 422 B

123456789101112131415161718192021222324
  1. /*
  2. Language: Shell Session
  3. Requires: bash.js
  4. Author: TSUYUSATO Kitsune <make.just.on@gmail.com>
  5. Category: common
  6. */
  7. function shell(hljs) {
  8. return {
  9. name: 'Shell Session',
  10. aliases: ['console'],
  11. contains: [
  12. {
  13. className: 'meta',
  14. begin: '^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]',
  15. starts: {
  16. end: '$', subLanguage: 'bash'
  17. }
  18. }
  19. ]
  20. }
  21. }
  22. module.exports = shell;