shell-session: support for PS2 and multi-line command continuation
Open
Nobody has claimed this yet.
language-definitions
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
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
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Prism's shell-session highlighting entry point and reproduce the examples in the linked test page. Make the secondary > prompt participate in multi-line continuation highlighting, then verify the cat pipeline and for loop snippets render correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, shell
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100