Skip to content

Commit

Permalink
Fix nested mode again vatlab/jupyterlab-sos#12
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed May 18, 2018
1 parent 562ee2d commit d1c0238
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sos_notebook/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2444,7 +2444,8 @@ table.task_table {
return "meta";
} else if (state.sos_state && state.sos_state.startsWith('entering ')) {
// the second parameter is starting column
state.inner_mode = CodeMirror.getMode(conf, state.sos_state.slice(9));
let mode = findMode(state.sos_state.slice(9).toLowerCase());
state.inner_mode = CodeMirror.getMode({}, mode);
state.inner_state = CodeMirror.startState(state.inner_mode, stream.indentation());
state.sos_state = null;
}
Expand Down

0 comments on commit d1c0238

Please sign in to comment.