clarified parser;
authorwenzelm
Sun, 29 Nov 2020 16:21:27 +0100
changeset 72779 1cc74982d038
parent 72778 83e581c9a5f1
child 72780 6205c5d4fadf
clarified parser;
src/Pure/Thy/thy_header.scala
--- a/src/Pure/Thy/thy_header.scala	Sun Nov 29 16:11:52 2020 +0100
+++ b/src/Pure/Thy/thy_header.scala	Sun Nov 29 16:21:27 2020 +0100
@@ -162,7 +162,7 @@
           { case None => Nil case Some(_ ~ xs) => xs }) ~
         (opt($$$(ABBREVS) ~! abbrevs) ^^
           { case None => Nil case Some(_ ~ xs) => xs }) ~
-        $$$(BEGIN) ^^ { case a ~ b ~ c ~ d ~ _ => Thy_Header(a._1, a._2, b, c, d).map(Symbol.decode) }
+        $$$(BEGIN) ^^ { case a ~ b ~ c ~ d ~ _ => Thy_Header(a._1, a._2, b, c, d) }
 
       val heading =
         (command(CHAPTER) |
@@ -225,7 +225,7 @@
       if (command) Token.Pos.command
       else (Token.Pos.file(node_name.node) /: skip_tokens)(_ advance _)
 
-    Parser.parse_header(tokens, pos).check(node_name)
+    Parser.parse_header(tokens, pos).map(Symbol.decode).check(node_name)
   }
 }