branch: externals/caml
commit 9aa847dd61436146ae5ae9b0bed81bcda4c7692d
Author: Jacques Garrigue <garrigue at math.nagoya-u.ac.jp>
Commit: Jacques Garrigue <garrigue at math.nagoya-u.ac.jp>
intelligent indentation of parenthesis
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2355
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
caml.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/caml.el b/caml.el
index e5ac137..54abbb1 100644
--- a/caml.el
+++ b/caml.el
@@ -1375,6 +1375,8 @@ Does not preserve point."
(indent-diff
(cond
((not kwop-info) (beginning-of-line 1) 0)
+ ((looking-at "[[({][|<]?[ \t]*")
+ (length (caml-match-string 0)))
((nth 1 kwop-info) (symbol-value (nth 3 kwop-info)))
(t
(let ((pos (point)))