Skip to content

Commit

Permalink
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 #8337)
  • Loading branch information
Brennon M authored and brammool committed Jun 6, 2021
1 parent 518df27 commit 6db7b63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,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/testdir/test_filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,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
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2954,
/**/
2953,
/**/
Expand Down

0 comments on commit 6db7b63

Please sign in to comment.