(hif-tokenize): Handle // comments after #if.
authorRichard M. Stallman <rms@gnu.org>
Tue, 11 Jan 1994 05:47:14 +0000 (05:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 11 Jan 1994 05:47:14 +0000 (05:47 +0000)
lisp/progmodes/hideif.el

index 6394de3..a48e471 100644 (file)
@@ -402,6 +402,11 @@ that form should be displayed.")
         (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))