Added a rule to generate comments for *COMMENT* tags.
This commit is contained in:
parent
3511a9bffc
commit
573e980f33
|
@ -12,10 +12,18 @@
|
||||||
*preorder*
|
*preorder*
|
||||||
. ,(lambda (tag . text) text)))
|
. ,(lambda (tag . text) text)))
|
||||||
|
|
||||||
|
(define comment-rule
|
||||||
|
`(*COMMENT* *preorder*
|
||||||
|
. ,(lambda (tag . elems)
|
||||||
|
`("<!-- "
|
||||||
|
,@elems
|
||||||
|
"-->"))))
|
||||||
|
|
||||||
(define default-rules
|
(define default-rules
|
||||||
`(,attribute-rule
|
`(,attribute-rule
|
||||||
,default-rule
|
,default-rule
|
||||||
,text-rule
|
,text-rule
|
||||||
|
,comment-rule
|
||||||
,url-rule
|
,url-rule
|
||||||
,plain-html-rule))
|
,plain-html-rule))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue