src/Pure/Tools/check_sources.scala
changeset 62814 29ca4cdd998d
parent 62615 8e5b631d203b
child 62834 970cedec9748
--- a/src/Pure/Tools/check_sources.scala	Sat Apr 02 15:06:41 2016 +0200
+++ b/src/Pure/Tools/check_sources.scala	Sat Apr 02 15:40:06 2016 +0200
@@ -28,7 +28,7 @@
             Position.here(line_pos(i)))
         }
       }
-      catch { case ERROR(msg) => Output.error_message(msg + Position.here(line_pos(i))) }
+      catch { case ERROR(msg) => Output.warning(msg + Position.here(line_pos(i))) }
 
       if (line.contains('\t'))
         Output.warning("TAB character" + Position.here(line_pos(i)))
@@ -36,6 +36,9 @@
 
     if (content.contains('\r'))
       Output.warning("CR character" + Position.here(file_pos))
+
+    if (Word.bidi_detect(content))
+      Output.warning("Bidirectional Unicode text " + Position.here(file_pos))
   }
 
   def check_hg(root: Path)