Skip to content

Commit

Permalink
vim-patch:8.2.2954: short file name extension for Scala not recognized
Browse files Browse the repository at this point in the history
Problem:    Short file name extension for Scala not recognized.
Solution:   Recognize *.sc. (closes vim/vim#8337)
vim/vim@6db7b63
  • Loading branch information
janlazo committed Jun 26, 2021
1 parent eb7e7ad commit 7a239a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/filetype.vim
Expand Up @@ -1505,7 +1505,7 @@ au BufNewFile,BufRead *.sass setf sass
au BufNewFile,BufRead *.sa setf sather

" Scala
au BufNewFile,BufRead *.scala setf scala
au BufNewFile,BufRead *.scala,*.sc setf scala

" SBT - Scala Build Tool
au BufNewFile,BufRead *.sbt setf sbt
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/testdir/test_filetype.vim
Expand Up @@ -424,7 +424,7 @@ let s:filename_checks = {
\ 'sass': ['file.sass'],
\ 'sather': ['file.sa'],
\ 'sbt': ['file.sbt'],
\ 'scala': ['file.scala'],
\ 'scala': ['file.scala', 'file.sc'],
\ 'scheme': ['file.scm', 'file.ss', 'file.rkt'],
\ 'scilab': ['file.sci', 'file.sce'],
\ 'screen': ['.screenrc', 'screenrc'],
Expand Down

0 comments on commit 7a239a8

Please sign in to comment.