Skip to content

Commit cc56a21

Browse files
committed
also add source.python and source.r, probably fixes #11
1 parent 424d275 commit cc56a21

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

SublimeIPythonNotebook.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</dict>
2828
</dict>
2929
<key>contentName</key>
30-
<string>ipynb.source.input.r</string>
30+
<string>ipynb.source.input.r source.r</string>
3131
<key>end</key>
3232
<string>\#\/Input</string>
3333
<key>endCaptures</key>
@@ -90,7 +90,7 @@
9090
</dict>
9191
</dict>
9292
<key>contentName</key>
93-
<string>ipynb.source.input.python</string>
93+
<string>ipynb.source.input.python source.python</string>
9494
<key>end</key>
9595
<string>(\#\/Input\[\1\])$</string>
9696
<key>endCaptures</key>

SublimeIPythonNotebook.tmLanguage.JSON

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
{
1616

17-
"contentName": "ipynb.source.input.r",
17+
"contentName": "ipynb.source.input.r source.r",
1818
"begin": "\\#Input-R\\[.*\\]\n",
1919
"end": "\\#\\/Input",
2020
"beginCaptures": {
@@ -50,7 +50,7 @@
5050

5151

5252
{
53-
"contentName": "ipynb.source.input.python",
53+
"contentName": "ipynb.source.input.python source.python",
5454
"begin": "\\#Input\\[(.*)\\]\\n",
5555
"end": "(\\#\\/Input\\[\\1\\])$",
5656
"patterns": [

TODO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
BUGS:
1212

13+
Wrong highlighting for open """ .
14+
1315
TODO for IPython 1.0
1416

1517
- support stdin input for %debug, raw_input and so on

0 commit comments

Comments
 (0)