Skip to content

Commit 6bd6a9a

Browse files
author
MattDMo
committed
Add support.ipython.cell-number
1 parent b1a9a5e commit 6bd6a9a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

PythonImproved.tmLanguage

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,30 @@
3333
<key>patterns</key>
3434
<array>
3535
<dict>
36+
<key>captures</key>
37+
<dict>
38+
<key>2</key>
39+
<dict>
40+
<key>name</key>
41+
<string>support.ipython.cell-number</string>
42+
</dict>
43+
</dict>
3644
<key>match</key>
37-
<string>(^In \[\d+\]\:)</string>
45+
<string>(^In \[(\d+)\]\:)</string>
3846
<key>name</key>
3947
<string>support.ipython.in</string>
4048
</dict>
4149
<dict>
50+
<key>captures</key>
51+
<dict>
52+
<key>2</key>
53+
<dict>
54+
<key>name</key>
55+
<string>support.ipython.cell-number</string>
56+
</dict>
57+
</dict>
4258
<key>match</key>
43-
<string>(^Out\[\d+\]\:)</string>
59+
<string>(^Out\[(\d+)\]\:)</string>
4460
<key>name</key>
4561
<string>support.ipython.out</string>
4662
</dict>

0 commit comments

Comments
 (0)