Improved BashSession highlighter

Issue #702 resolved
created an issue

This improves the BashSession lexer in two ways:

  • Doesn't highlight multiline commands as Bash code
  • Allows to configure a sublexer (defaults to none).

This allows to highlight not only the command prompt and commands, but also the command output by choosing the correct 'sub-lexer'.

It now detects multiline commands, which don't start with '>' on the next line, compared to multiline bash scripts, where all lines start with a '>'.

Comments (2)

  1. Tim Hatch

    Patch doesn't apply to the current version (and my apologies for this languishing for so long, I'm really excited about the BashLexer and friends). I hope to review in time for 1.6 final (~December 2012).

  2. Log in to comment