1. Yaron Minsky
  2. js-elisp


Peter Szilagyi  committed 48a1413

In tuareg-compute-indentation, fixed lines of non-comment blocks after the first.

  • Participants
  • Parent commits 7360b5b
  • Branches default

Comments (0)

Files changed (1)

File elisp/contrib/tuareg/tuareg.el

View file
               (let ((star (and (tuareg-leading-star-p)
                                (looking-at "\\*"))))
-                (if star (re-search-forward "(") (re-search-forward "(\\*+[ \t]*"))
+                (if star (re-search-forward "(")
+                  ;; may be in comment or may not be
+                  (re-search-forward "(\\*+[ \t]*" nil 'noerror))
             ;; XCR cfalls: Small bug: the first statement will be
             ;; indented too much unless you start the code region with