src/Pure/PIDE/resources.scala
changeset 66917 fcf84cd6c94f
parent 66850 a91b6d80c911
child 66918 ec2b50aeb0dd
--- a/src/Pure/PIDE/resources.scala	Wed Oct 25 13:47:53 2017 +0200
+++ b/src/Pure/PIDE/resources.scala	Wed Oct 25 14:36:29 2017 +0200
@@ -61,8 +61,8 @@
   {
     val raw_text = with_thy_reader(name, reader => reader.source.toString)
     () => {
-      val text = Symbol.decode(raw_text)
-      if (syntax.load_commands_in(text)) {
+      if (syntax.load_commands_in(raw_text)) {
+        val text = Symbol.decode(raw_text)
         val spans = syntax.parse_spans(text)
         val dir = Path.explode(name.master_dir)
         spans.iterator.map(Command.span_files(syntax, _)._1).flatten.