-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShellSession.tmLanguage
52 lines (52 loc) · 1.26 KB
/
ShellSession.tmLanguage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Shell Session</string>
<key>scopeName</key>
<string>text.shell-session</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?x) ^ (?: ( (?:\(\S+\)\s*)? (?: sh\S*? | \w+\S+[@:]\S+(?:\s+\S+)? | \[\S+?[@:][^\n]+?\].*? ) ) \s* )? ( [>$#%❯➜] | \p{Greek} ) \s+ (.*) $</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.prompt-prefix.shell-session</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.separator.prompt.shell-session</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>source.shell</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.shell</string>
</dict>
</array>
</dict>
</dict>
</dict>
<dict>
<key>name</key>
<string>meta.output.shell-session</string>
<key>match</key>
<string>^.+$</string>
</dict>
</array>
<key>fileTypes</key>
<array>
<string>sh-session</string>
</array>
</dict>
</plist>