Skip to content

Commit

Permalink
bugfix: Fix Ammonite tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Oct 22, 2024
1 parent 48a63d1 commit 3e1223c
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) {
if (path.isAmmoniteScript || path.isMill) {
val ammoniteInput = Input.Ammonite(input)
ammoniteInput.safeParse[MultiSource](dialect)
} else {
Expand Down

0 comments on commit 3e1223c

Please sign in to comment.