Skip to content

Commit

Permalink
Stop considering all mill files Ammonite scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Oct 10, 2024
1 parent a6b4f26 commit 6160121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ final class Trees(
val skipFistShebang =
if (text.startsWith("#!")) text.replaceFirst("#!", "//") else text
val input = Input.VirtualFile(path.toURI.toString(), skipFistShebang)
if (path.isAmmoniteScript || path.isMill) {
if (path.isAmmoniteScript) {
val ammoniteInput = Input.Ammonite(input)
ammoniteInput.safeParse[MultiSource](dialect)
} else {
Expand Down

0 comments on commit 6160121

Please sign in to comment.