vendor/assets/javascripts/codemirror/modes/python.js in codemirror-rails-3.12 vs vendor/assets/javascripts/codemirror/modes/python.js in codemirror-rails-3.13
- old
+ new
@@ -329,11 +329,12 @@
if (state.tokenize != tokenBase) {
return state.tokenize.isString ? CodeMirror.Pass : 0;
}
return state.scopes[0].offset;
- }
+ },
+ lineComment: "#"
};
return external;
});
CodeMirror.defineMIME("text/x-python", "python");