src/Pure/Thy/thy_syntax.scala
changeset 48706 e2b512024eab
parent 47987 4e9df6ffcc6e
child 48707 ba531af91148
equal deleted inserted replaced
48705:dd32321d6eef 48706:e2b512024eab
   151       case _ =>
   151       case _ =>
   152     }
   152     }
   153 
   153 
   154     val syntax =
   154     val syntax =
   155       if (previous.is_init || updated_keywords)
   155       if (previous.is_init || updated_keywords)
   156         (base_syntax /: nodes.entries)({ case (syn, (_, node)) => (syn /: node.keywords)(_ + _) })
   156         (base_syntax /: nodes.entries) { case (syn, (_, node)) => syn.add_keywords(node.header) }
   157       else previous.syntax
   157       else previous.syntax
   158 
   158 
   159     val reparse =
   159     val reparse =
   160       if (updated_imports || updated_keywords)
   160       if (updated_imports || updated_keywords)
   161         nodes.descendants(doc_edits.iterator.map(_._1).toList)
   161         nodes.descendants(doc_edits.iterator.map(_._1).toList)