Skip to content

shell-session: support for PS2 and multi-line command continuation #4054

@MountComb

Description

@MountComb

Information

  • Language: shell-session
  • Plugins: none

Description
In shell-session highlighting, the secondary prompt (PS2), typically represented by > , is not recognized as a prompt. Current method relies on backslash \ which may not exist.

Code snippet

Test page

The code being highlighted incorrectly.
user@localhost:~$ cat /dev/null |
> wc -l
0

user@localhost:~$ for i in `seq 3`; do
> echo $i
> done
1
2
3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions