# HG changeset patch # User wenzelm # Date 1395161620 -3600 # Node ID 3c89e21d9be26a71804562a57476e60c0c6f1dad # Parent 06cc31dff1389d16cef6939bcd99cff6917ac3a6 simplified (despite 70898d016538); diff -r 06cc31dff138 -r 3c89e21d9be2 src/Pure/Isar/parse.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 => diff -r 06cc31dff138 -r 3c89e21d9be2 src/Pure/PIDE/resources.scala --- 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 } }