Merge pull request #915 from quexer/patch-3

Update lib/ace/mode/markdown.js
This commit is contained in:
Garen Torikian 2012-09-06 11:19:03 -07:00
commit 69b899c211

View file

@ -65,7 +65,7 @@ oop.inherits(Mode, TextMode);
(function() {
this.getNextLineIndent = function(state, line, tab) {
if (state == "listblock") {
var match = /^((?:.+)?)([-+*][ ]+)/.exec(line);
var match = /^((?:.+)?)(([-+*]|\d+\.)\s+)/.exec(line);
if (match) {
return new Array(match[1].length + 1).join(" ") + match[2];
} else {