eof in cdata section pruefen

This commit is contained in:
dlichteblau
2005-11-27 12:13:50 +00:00
parent 13faa2c953
commit 86c843138c
2 changed files with 11 additions and 20 deletions

View File

@ -1601,6 +1601,8 @@
(tagbody
state-1
(setf d (read-rune input))
(when (eq d :eof)
(eox input))
(unless (data-rune-p d)
(wf-error "Illegal char: ~S." d))
(when (rune= d #/\]) (go state-2))
@ -1608,6 +1610,8 @@
(go state-1)
state-2 ;; #/] seen
(setf d (read-rune input))
(when (eq d :eof)
(eox input))
(unless (data-rune-p d)
(wf-error "Illegal char: ~S." d))
(when (rune= d #/\]) (go state-3))
@ -1616,6 +1620,8 @@
(go state-1)
state-3 ;; #/\] #/\] seen
(setf d (read-rune input))
(when (eq d :eof)
(eox input))
(unless (data-rune-p d)
(wf-error "Illegal char: ~S." d))
(when (rune= d #/>)