1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-15 13:33:12 +02:00
chroma/lexers/testdata/bashsession.actual
Tobias Neitzel ac2891ff2a
Add support for more complex command prompts (#583)
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.
2021-12-20 18:04:05 +11:00

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