--- a/src/Pure/Admin/check_sources.scala Sun Feb 09 11:14:59 2025 +0100
+++ b/src/Pure/Admin/check_sources.scala Sun Feb 09 12:14:09 2025 +0100
@@ -50,7 +50,7 @@
val hg = Mercurial.repository(root)
for {
file <- hg.known_files()
- if File.is_thy(file) || File.is_ML(file) || file.endsWith("/ROOT")
+ if File.is_scala(file) || File.is_thy(file) || File.is_ML(file) || file.endsWith("/ROOT")
} check_file(root + Path.explode(file))
}
@@ -64,7 +64,7 @@
val getopts = Getopts("""
Usage: isabelle check_sources [ROOT_DIRS...]
- Check .thy, .ML, ROOT against known files of Mercurial ROOT_DIRS.
+ Check .scala, .thy, .ML, ROOT against known files of Mercurial ROOT_DIRS.
""")
val specs = getopts(args)
--- a/src/Pure/General/file.scala Sun Feb 09 11:14:59 2025 +0100
+++ b/src/Pure/General/file.scala Sun Feb 09 12:14:09 2025 +0100
@@ -101,6 +101,7 @@
def is_node(s: String): Boolean = s.endsWith(".node")
def is_pdf(s: String): Boolean = s.endsWith(".pdf")
def is_png(s: String): Boolean = s.endsWith(".png")
+ def is_scala(s: String): Boolean = s.endsWith(".scala")
def is_tar_bz2(s: String): Boolean = s.endsWith(".tar.bz2")
def is_tar_gz(s: String): Boolean = s.endsWith(".tar.gz")
def is_tgz(s: String): Boolean = s.endsWith(".tgz")