HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450b15a
)
(hif-tokenize): Handle // comments after #if.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 11 Jan 1994 05:47:14 +0000
(
05:47
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 11 Jan 1994 05:47:14 +0000
(
05:47
+0000)
lisp/progmodes/hideif.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/progmodes/hideif.el
b/lisp/progmodes/hideif.el
index
6394de3
..
a48e471
100644
(file)
--- a/
lisp/progmodes/hideif.el
+++ b/
lisp/progmodes/hideif.el
@@
-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))