diff --git a/origami-parsers.el b/origami-parsers.el index f043ae3..6f05296 100644 --- a/origami-parsers.el +++ b/origami-parsers.el @@ -66,11 +66,11 @@ position in the CONTENT." acc)))) (reverse acc)))) -;;; TODO: support tabs (defun origami-indent-parser (create) (cl-labels ((lines (string) (origami-get-positions string ".*?\r?\n")) (annotate-levels (lines) (-map (lambda (line) + ;; TODO: support tabs (let ((indent (length (car (s-match "^ *" (car line))))) (beg (cdr line)) (end (+ (cdr line) (length (car line)) -1)))