src/Pure/PIDE/document.scala
changeset 75914 4da80799352f
parent 75909 198a52d26b57
child 76204 b80b2fbc46c3
equal deleted inserted replaced
75913:540aad9405b1 75914:4da80799352f
   589         elements: Markup.Elements = Markup.Elements.full): XML.Body =
   589         elements: Markup.Elements = Markup.Elements.full): XML.Body =
   590       state.xml_markup(version, node_name, range = range, elements = elements)
   590       state.xml_markup(version, node_name, range = range, elements = elements)
   591 
   591 
   592     def xml_markup_blobs(
   592     def xml_markup_blobs(
   593       elements: Markup.Elements = Markup.Elements.full
   593       elements: Markup.Elements = Markup.Elements.full
   594     ) : List[(Path, XML.Body)] = {
   594     ) : List[(Command.Blob, XML.Body)] = {
   595       snippet_command match {
   595       snippet_command match {
   596         case None => Nil
   596         case None => Nil
   597         case Some(command) =>
   597         case Some(command) =>
   598           for (Exn.Res(blob) <- command.blobs)
   598           for (Exn.Res(blob) <- command.blobs)
   599           yield {
   599           yield {
   603               if (Bytes(text) == bytes) {
   603               if (Bytes(text) == bytes) {
   604                 val markup = command.init_markups(Command.Markup_Index.blob(blob))
   604                 val markup = command.init_markups(Command.Markup_Index.blob(blob))
   605                 markup.to_XML(Text.Range(0, text.length), text, elements)
   605                 markup.to_XML(Text.Range(0, text.length), text, elements)
   606               }
   606               }
   607               else Nil
   607               else Nil
   608             blob.src_path -> xml
   608             blob -> xml
   609           }
   609           }
   610       }
   610       }
   611     }
   611     }
   612 
   612 
   613 
   613