Skip to content

Commit

Permalink
Fix comments before section header vatlab/jupyterlab-sos#17
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Jun 16, 2018
1 parent 6877fe6 commit d6a4b82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sos/templates/sos-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@
} else if (sl == '!') {
stream.eatWhile(/\S/);
return "meta";
} else if (sl == '#') {
stream.skipToEnd();
return "comment";
} else if (sl == '%') {
stream.eatWhile(/\S/);
return "meta";
Expand Down

0 comments on commit d6a4b82

Please sign in to comment.