simplified (despite 70898d016538);
authorwenzelm
Tue, 18 Mar 2014 17:53:40 +0100
changeset 56209 3c89e21d9be2
parent 56208 06cc31dff138
child 56210 c7c85cdb725d
simplified (despite 70898d016538);
src/Pure/Isar/parse.scala
src/Pure/PIDE/resources.scala
--- a/src/Pure/Isar/parse.scala	Tue Mar 18 17:39:03 2014 +0100
+++ b/src/Pure/Isar/parse.scala	Tue Mar 18 17:53:40 2014 +0100
@@ -64,7 +64,7 @@
     def path: Parser[String] =
       atom("file name/path specification", tok => tok.is_name && Path.is_wellformed(tok.content))
     def theory_name: Parser[String] =
-      atom("theory name", tok => tok.is_name && Resources.is_wellformed_thy_path(tok.content))
+      atom("theory name", tok => tok.is_name && Path.is_wellformed(tok.content))
 
     private def tag_name: Parser[String] =
       atom("tag name", tok =>
--- a/src/Pure/PIDE/resources.scala	Tue Mar 18 17:39:03 2014 +0100
+++ b/src/Pure/PIDE/resources.scala	Tue Mar 18 17:53:40 2014 +0100
@@ -14,13 +14,7 @@
 
 object Resources
 {
-  /* paths */
-
   def thy_path(path: Path): Path = path.ext("thy")
-
-  def is_wellformed_thy_path(str: String): Boolean =
-    try { thy_path(Path.explode(str)); true }
-    catch { case ERROR(_) => false }
 }