mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
6db830e40e
commit
5f54f03285
@ -1074,6 +1074,7 @@ local extension = {
|
||||
sass = 'sass',
|
||||
sbt = 'sbt',
|
||||
scala = 'scala',
|
||||
mill = 'scala',
|
||||
ss = 'scheme',
|
||||
scm = 'scheme',
|
||||
sld = 'scheme',
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user