aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kipp2022-11-10 15:17:01 +0000
committerGitHub2022-11-10 15:17:01 +0000
commit183d1fadf463093b7e11ed60dc169d512d7ae290 (patch)
treea325c10bcdce9667c2aad4aabada72bd47747eb5
parentd7136d691a32cb327c358ab9e19bd9d25d61a457 (diff)
feat: add sc to filetypes for Scala (#4697)
Files ending in `.sc` are known as "Scala Scripts". The scalac compiler knows how to handle these, popular tools like [Ammonite](https://github.com/com-lihaoyi/Ammonite) and [scala-cli](https://github.com/Virtuslab/scala-cli) use them, and even some Scala build tools like [mill](https://github.com/com-lihaoyi/mill) use them as their build files (`build.sc`). This change just makes sure that they are treated as Scala files so Metals kicks in.
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 41558e10..4ac39b02 100644
--- a/languages.toml
+++ b/languages.toml
@@ -998,7 +998,7 @@ source = { git = "https://github.com/UserNobody14/tree-sitter-dart", rev = "2d7f
name = "scala"
scope = "source.scala"
roots = ["build.sbt", "pom.xml"]
-file-types = ["scala", "sbt"]
+file-types = ["scala", "sbt", "sc"]
comment-token = "//"
indent = { tab-width = 2, unit = " " }
language-server = { command = "metals" }