.
original commit: 2d20748107b752704a44294b0b2b115176ec4e9a
This commit is contained in:
parent
91bd1cc28d
commit
8fae6f71f0
|
@ -105,13 +105,13 @@
|
||||||
(lambda (str)
|
(lambda (str)
|
||||||
(regexp-replace re:right-spaces str "")))
|
(regexp-replace re:right-spaces str "")))
|
||||||
|
|
||||||
(define re:comments (regexp "\\(.*\\)"))
|
(define re:comments (regexp "^[^\"]*(\"[^\"]*\")*[^\"]*(\\(.*\\))"))
|
||||||
(define trim-comments
|
(define trim-comments
|
||||||
(lambda (str)
|
(lambda (str)
|
||||||
(let* ((positions (regexp-match-positions re:comments str)))
|
(let* ((positions (regexp-match-positions re:comments str)))
|
||||||
(if positions
|
(if positions
|
||||||
(string-append (substring str 0 (caar positions))
|
(string-append (substring str 0 (caaddr positions))
|
||||||
(substring str (cdar positions) (string-length str)))
|
(substring str (cdaddr positions) (string-length str)))
|
||||||
str))))
|
str))))
|
||||||
|
|
||||||
(define lowercase
|
(define lowercase
|
||||||
|
|
Loading…
Reference in New Issue
Block a user