equal
deleted
inserted
replaced
360 span.kind match { |
360 span.kind match { |
361 // inlined errors |
361 // inlined errors |
362 case Command_Span.Command_Span(name, _) if syntax.is_theory_begin(name) => |
362 case Command_Span.Command_Span(name, _) if syntax.is_theory_begin(name) => |
363 val header = |
363 val header = |
364 resources.check_thy_reader("", node_name, |
364 resources.check_thy_reader("", node_name, |
365 new CharSequenceReader(span.source), Token.Pos.offset) |
365 new CharSequenceReader(span.source), Token.Pos.id(Markup.COMMAND)) |
366 val import_errors = |
366 val import_errors = |
367 for ((imp, pos) <- header.imports if !can_import(imp)) |
367 for ((imp, pos) <- header.imports if !can_import(imp)) |
368 yield "Bad theory import " + quote(imp.node) + Position.here(pos) |
368 yield "Bad theory import " + quote(imp.node) + Position.here(pos) |
369 ((header.errors ::: import_errors).map(msg => Exn.Exn(ERROR(msg)): Command.Blob), -1) |
369 ((header.errors ::: import_errors).map(msg => Exn.Exn(ERROR(msg)): Command.Blob), -1) |
370 |
370 |