src/Pure/Tools/build.scala
changeset 59811 6b0d9e8ac227
parent 59736 5c1a0069b9d3
child 59891 9ce697050455
     1.1 --- a/src/Pure/Tools/build.scala	Wed Mar 25 13:31:47 2015 +0100
     1.2 +++ b/src/Pure/Tools/build.scala	Wed Mar 25 13:45:52 2015 +0100
     1.3 @@ -242,8 +242,8 @@
     1.4                { case _ ~ (_ ~ (x ~ _)) => x } | success("document")) ~
     1.5              rep1(path)) ^^ { case _ ~ (x ~ y) => y.map((x, _)) }
     1.6  
     1.7 -      position(command(SESSION)) ~!
     1.8 -        (session_name ~
     1.9 +      command(SESSION) ~!
    1.10 +        (position(session_name) ~
    1.11            (($$$("(") ~! (rep1(name) <~ $$$(")")) ^^ { case _ ~ x => x }) | success(Nil)) ~
    1.12            (($$$(IN) ~! path ^^ { case _ ~ x => x }) | success(".")) ~
    1.13            ($$$("=") ~!
    1.14 @@ -253,7 +253,7 @@
    1.15                rep1(theories) ~
    1.16                (($$$(FILES) ~! rep1(path) ^^ { case _ ~ x => x }) | success(Nil)) ~
    1.17                (rep(document_files) ^^ (x => x.flatten))))) ^^
    1.18 -        { case (_, pos) ~ (a ~ b ~ c ~ (_ ~ (d ~ e ~ f ~ g ~ h ~ i))) =>
    1.19 +        { case _ ~ ((a, pos) ~ b ~ c ~ (_ ~ (d ~ e ~ f ~ g ~ h ~ i))) =>
    1.20              Session_Entry(pos, a, b, c, d, e, f, g, h, i) }
    1.21      }
    1.22