aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-08-18 06:29:14 +0000
committerGerd Moellmann2000-08-18 06:29:14 +0000
commit0c1a49d3cb1b623fd4874844c3bba9a4f5d231e6 (patch)
tree4a86a332fa717adeddfcc34f9d08235399cfaec2
parentda7ddbedee24198fc89cb8e41512804925ec7d8c (diff)
downloademacs-0c1a49d3cb1b623fd4874844c3bba9a4f5d231e6.tar.gz
emacs-0c1a49d3cb1b623fd4874844c3bba9a4f5d231e6.zip
(icon-indent-line)
(icon-is-continuation-line): Handle comments specially.
-rw-r--r--lisp/progmodes/icon.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el
index dc72fbe07ff..96e46af2754 100644
--- a/lisp/progmodes/icon.el
+++ b/lisp/progmodes/icon.el
@@ -295,7 +295,7 @@ Return the amount the indentation changed by."
295 (setq beg (point)) 295 (setq beg (point))
296 (cond ((eq indent nil) 296 (cond ((eq indent nil)
297 (setq indent (current-indentation))) 297 (setq indent (current-indentation)))
298 ((looking-at "[ \t]*#") 298 ((looking-at "^#")
299 (setq indent 0)) 299 (setq indent 0))
300 (t 300 (t
301 (skip-chars-forward " \t") 301 (skip-chars-forward " \t")
@@ -432,7 +432,7 @@ Returns nil if line starts inside a string, t if in a comment."
432 (progn (forward-word -1) (point)) 432 (progn (forward-word -1) (point))
433 (progn (forward-word 1) (point))) 433 (progn (forward-word 1) (point)))
434 icon-resword-alist) 434 icon-resword-alist)
435 (not (memq ch '(0 ?\; ?\} ?\{ ?\) ?\] ?\" ?\' ?\n)))))) 435 (not (memq ch '(0 ?\; ?\} ?\{ ?\) ?\] ?\" ?\' ?\# ?\, ?\. ?\n))))))
436 436
437(defun icon-backward-to-noncomment (lim) 437(defun icon-backward-to-noncomment (lim)
438 (let (opoint stop) 438 (let (opoint stop)