src/Pure/Thy/thy_info.scala
changeset 66776 b74b9d0bf763
parent 66775 e8f27a35ee0f
     1.1 --- a/src/Pure/Thy/thy_info.scala	Sat Oct 07 12:50:05 2017 +0200
     1.2 +++ b/src/Pure/Thy/thy_info.scala	Sat Oct 07 13:13:46 2017 +0200
     1.3 @@ -49,12 +49,13 @@
     1.4          val name = entry.name.theory
     1.5          val imports = entry.header.imports.map(p => p._1.theory)
     1.6  
     1.7 -        val graph1 = (graph /: (name :: imports))(_.default_node(_, Thy_Header.bootstrap_syntax))
     1.8 +        val graph1 = (graph /: (name :: imports))(_.default_node(_, Outer_Syntax.empty))
     1.9          val graph2 = (graph1 /: imports)(_.add_edge(_, name))
    1.10  
    1.11 -        val syntax =
    1.12 -          Outer_Syntax.merge((name :: graph2.imm_preds(name).toList).map(graph2.get_node(_))) +
    1.13 -            entry.header
    1.14 +        val syntax0 = if (name == Thy_Header.PURE) List(Thy_Header.bootstrap_syntax) else Nil
    1.15 +        val syntax1 = (name :: graph2.imm_preds(name).toList).map(graph2.get_node(_))
    1.16 +        val syntax = Outer_Syntax.merge(syntax0 ::: syntax1) + entry.header
    1.17 +
    1.18          graph2.map_node(name, _ => syntax)
    1.19        })
    1.20