--- 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 }
}