src/Pure/PIDE/document.scala
changeset 46941 c0f776b661fa
parent 46940 a40be2f10ca9
child 46942 f5c2d66faa04
--- a/src/Pure/PIDE/document.scala	Thu Mar 15 10:16:21 2012 +0100
+++ b/src/Pure/PIDE/document.scala	Thu Mar 15 11:37:56 2012 +0100
@@ -212,12 +212,17 @@
   {
     val init: Version = new Version()
 
-    def make(nodes: Nodes): Version = new Version(new_id(), nodes)
+    def make(syntax: Outer_Syntax, nodes: Nodes): Version =
+      new Version(new_id(), syntax, nodes)
   }
 
   final class Version private(
     val id: Version_ID = no_id,
+    val syntax: Outer_Syntax = Outer_Syntax.empty,
     val nodes: Nodes = Nodes.empty)
+  {
+    def is_init: Boolean = id == no_id
+  }
 
 
   /* changes of plain text, eventually resulting in document edits */