original commit: 6fe240dac9047c34b3d5295fd4bf0192e90102b6
This commit is contained in:
Robby Findler 2000-08-04 17:37:06 +00:00
parent 50deca1394
commit 98bdf65866

View File

@ -113,10 +113,28 @@
(let ([line (position-line position)])
(ormap
(lambda (comment-start)
(let ([f (find-string comment-start 'backward position)])
(let loop ([f (find-string comment-start 'backward position)])
(if f
(= (position-line f) line)
#f)))
(cond
[(= (position-line f) line)
(let ([f-1 (- f 1)])
(cond
[(= f 0)
(prinf "1~n")
#t]
[(and (= (position-line f-1) line)
(not (char=? (get-character f-1) #\\ )))
(prinf "2~n")
#t]
[else
(prinf "3~n")
(loop (find-string comment-start 'backward f-1))]))]
[else
(prinf "4~n")
#f])
(begin
(printf "5~n")
#f))))
(scheme-paren:get-comments))))])
(private
[remove-indents-callback