changeset 5560:a9924c6db247

(hif-tokenize): Handle // comments after #if.
author Richard M. Stallman <rms@gnu.org>
date Tue, 11 Jan 1994 05:47:14 +0000
parents e976a52296fc
children fd7524d61a8d
files lisp/progmodes/hideif.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/hideif.el	Tue Jan 11 05:38:36 1994 +0000
+++ b/lisp/progmodes/hideif.el	Tue Jan 11 05:47:14 1994 +0000
@@ -402,6 +402,11 @@
 	 (aset expr-string (1- expr-start) ?\n)
 	 )
 
+	((string-match "^//" expr-string expr-start)
+	 (string-match "$" expr-string expr-start)
+	 (setq expr-start (match-end 0))
+	 )
+
 	((string-match hif-token-regexp expr-string expr-start)
 	  (let ((token (substring expr-string expr-start (match-end 0))))
 	    (setq expr-start (match-end 0))