vim-patch:9.1.1080: filetype: Mill files are not recognized

Problem:  filetype: Mill files are not recognized
Solution: detect '*.mill' files as scala filetype
          (author)

In the past [Mill](https://mill-build.org/mill/index.html) build files
were always `build.sc` and treated as Scala files. However as the 0.12.x
series of mill you can create a `build.mill` file. You can see a lot of
examples of this if you search
[GitHub](https://github.com/search?q=build.mill&type=code). This small
change just ensures that if you have a `*.mill` file it treats it as a
Scala file.

closes: vim/vim#16585

9c8f9b10fc

Co-authored-by: Chris Kipp <ckipp@pm.me>
This commit is contained in:
Christian Clason 2025-02-06 21:52:27 +01:00 committed by Christian Clason
parent 6db830e40e
commit 5f54f03285
2 changed files with 2 additions and 1 deletions

View File

@ -1074,6 +1074,7 @@ local extension = {
sass = 'sass',
sbt = 'sbt',
scala = 'scala',
mill = 'scala',
ss = 'scheme',
scm = 'scheme',
sld = 'scheme',

View File

@ -671,7 +671,7 @@ func s:GetFilenameChecks() abort
\ 'sas': ['file.sas'],
\ 'sass': ['file.sass'],
\ 'sbt': ['file.sbt'],
\ 'scala': ['file.scala'],
\ 'scala': ['file.scala', 'file.mill'],
\ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config', '.lips_repl_history'],
\ 'scilab': ['file.sci', 'file.sce'],
\ 'screen': ['.screenrc', 'screenrc'],