src/Pure/Thy/thy_syntax.scala
changeset 52530 99dd8b4ef3fe
parent 50761 f6811984983b
child 52535 b7badd371e4d
equal deleted inserted replaced
52528:b6a224676c04 52530:99dd8b4ef3fe
    66 
    66 
    67 
    67 
    68       /* result structure */
    68       /* result structure */
    69 
    69 
    70       val spans = parse_spans(syntax.scan(text))
    70       val spans = parse_spans(syntax.scan(text))
    71       spans.foreach(span => add(Command(Document.no_id, node_name, span)))
    71       spans.foreach(span => add(Command(Document_ID.none, node_name, span)))
    72       result()
    72       result()
    73     }
    73     }
    74   }
    74   }
    75 
    75 
    76 
    76 
   223       case Nil =>
   223       case Nil =>
   224         assert(spans2.isEmpty)
   224         assert(spans2.isEmpty)
   225         commands
   225         commands
   226       case cmd :: _ =>
   226       case cmd :: _ =>
   227         val hook = commands.prev(cmd)
   227         val hook = commands.prev(cmd)
   228         val inserted = spans2.map(span => Command(Document.new_id(), name, span))
   228         val inserted = spans2.map(span => Command(Document_ID.make(), name, span))
   229         (commands /: cmds2)(_ - _).append_after(hook, inserted)
   229         (commands /: cmds2)(_ - _).append_after(hook, inserted)
   230     }
   230     }
   231   }
   231   }
   232 
   232 
   233 
   233