changeset 18281:ffc2fda197bc

(icon-indent-line): A comment ends at the end of the line, delete call to inexistent function. (icon-font-lock-keywords-1): Improved regexp. (icon-font-lock-keywords-2): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Tue, 17 Jun 1997 19:34:56 +0000
parents f693db11df45
children 363bd42657e1
files lisp/progmodes/icon.el
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/icon.el	Tue Jun 17 19:32:04 1997 +0000
+++ b/lisp/progmodes/icon.el	Tue Jun 17 19:34:56 1997 +0000
@@ -295,8 +295,6 @@
     (setq beg (point))
     (cond ((eq indent nil)
 	   (setq indent (current-indentation)))
-	  ((eq indent t)
-	   (setq indent (calculate-icon-indent-within-comment)))
 	  ((looking-at "[ \t]*#")
 	   (setq indent 0))
 	  (t
@@ -618,7 +616,7 @@
   (eval-when-compile
     (list
      ;; Fontify procedure name definitions.
-     '("^[ \t]*\\(procedure\\)[ \t]*\\(\\sw+\\)[ \t]*("
+       '("^[ \t]*\\(procedure\\)\\>[ \t]*\\(\\sw+\\)?"
        (1 font-lock-builtin-face) (2 font-lock-function-name-face nil t))))
   "Subdued level highlighting for Icon mode.")
 
@@ -674,7 +672,7 @@
 		 font-lock-function-name-face
 	       font-lock-variable-name-face)))))
 
-      (cons      ;; $define $elif $ifdef $ifdef $ifndef
+      (cons      ;; $define $elif $ifdef $ifndef $undef
        (concat "^" 
 	       (regexp-opt'("$define" "$elif" "$ifdef" "$ifndef" "$undef") t)
 	       "\\>[ \t]*\\([^ \t\n]+\\)?")