From d6a4b82cf7b8a9b11fc87668a8c0b23a01d89aac Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Sat, 16 Jun 2018 09:44:48 -0500 Subject: [PATCH] Fix comments before section header vatlab/jupyterlab-sos#17 --- src/sos/templates/sos-mode.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sos/templates/sos-mode.js b/src/sos/templates/sos-mode.js index 9733934b7..02a473251 100644 --- a/src/sos/templates/sos-mode.js +++ b/src/sos/templates/sos-mode.js @@ -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";