Commit 2aeb3a1d authored by Leo Liu's avatar Leo Liu

* progmodes/octave.el (octave-indent-comment): Fix the indentation

of ### or %%%.
parent 44aa9ee6
2013-05-13 Leo Liu <sdl.web@gmail.com>
* progmodes/octave.el (octave-indent-comment): Fix the indentation
of ### or %%%.
2013-05-12 Leo Liu <sdl.web@gmail.com>
* progmodes/octave.el (inferior-octave-startup): Store the value
......
......@@ -434,10 +434,13 @@ Non-nil means always go to the next Octave code line after sending."
"A function for `smie-indent-functions' (which see)."
(save-excursion
(back-to-indentation)
(when (and (not (octave-in-string-or-comment-p))
(looking-at-p "\\s<\\(?:[^{}]\\|$\\)")
(not (looking-at-p "\\s<\\s<")))
(comment-choose-indent))))
(cond
((octave-in-string-or-comment-p) nil)
((looking-at-p "\\s<\\{3,\\}")
0)
((and (looking-at-p "\\s<\\(?:[^{}]\\|$\\)")
(not (looking-at-p "\\s<\\s<")))
(comment-choose-indent)))))
(defvar octave-font-lock-keywords
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment