src/Pure/PIDE/yxml.scala
changeset 48996 a8bad1369ada
parent 45673 cd41e3903fbf
child 55551 4a5f65df29fa
--- a/src/Pure/PIDE/yxml.scala	Wed Aug 29 12:18:21 2012 +0200
+++ b/src/Pure/PIDE/yxml.scala	Wed Aug 29 12:55:41 2012 +0200
@@ -93,10 +93,10 @@
 
     /* parse chunks */
 
-    for (chunk <- Library.chunks(source, X) if chunk.length != 0) {
+    for (chunk <- Library.separated_chunks(X, source) if chunk.length != 0) {
       if (chunk.length == 1 && chunk.charAt(0) == Y) pop()
       else {
-        Library.chunks(chunk, Y).toList match {
+        Library.separated_chunks(Y, chunk).toList match {
           case ch :: name :: atts if ch.length == 0 =>
             push(name.toString, atts.map(parse_attrib))
           case txts => for (txt <- txts) add(XML.Text(txt.toString))