mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-15 13:33:12 +02:00
The bashsession lexer did only recognized command prompts starting with one of the characters '#$%>'. This commit adds support for a prefixed block of the form `[.*@.*]`, which is a common layout for command prompts.
16 lines
270 B
Plaintext
16 lines
270 B
Plaintext
$ echo "Hello, world!"
|
|
Hello, world!
|
|
% pwd
|
|
/User/foo
|
|
> make -j build
|
|
%ls | wc -l
|
|
5
|
|
[user@host]$ whoami
|
|
user
|
|
[user@host] # id
|
|
uid=1000(user) gid=1000(user) groups=1000(user)
|
|
[super user :D@super host :D] %if [ 1 -eq 1 ]; then uname; fi
|
|
Linux
|
|
[user@host]%echo $((1+1))
|
|
2
|