Skip to content

Commit

Permalink
vim-patch:8.0.0906: don't recognize Couchbase files
Browse files Browse the repository at this point in the history
Problem:    Don't recognize Couchbase files.
Solution:   Add filetype detection. (Eugene Ciurana, closes vim/vim#1951)

vim/vim@d9bc8a8
  • Loading branch information
justinmk committed Feb 11, 2018
1 parent 6ab9e87 commit e15f2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,9 @@ au BufNewFile,BufRead *.mush setf mush
" Mutt setup file (also for Muttng)
au BufNewFile,BufRead Mutt{ng,}rc setf muttrc

" N1QL
au BufRead,BufNewfile *.n1ql,*.nql setf n1ql

" Nano
au BufNewFile,BufRead */etc/nanorc,*.nanorc setf nanorc

Expand Down
1 change: 1 addition & 0 deletions src/nvim/testdir/test_filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ let s:filename_checks = {
\ 'mush': ['file.mush'],
\ 'muttrc': ['Muttngrc', 'Muttrc'],
\ 'mysql': ['file.mysql'],
\ 'n1ql': ['file.n1ql', 'file.nql'],
\ 'named': ['namedfile.conf', 'rndcfile.conf'],
\ 'nanorc': ['/etc/nanorc', 'file.nanorc'],
\ 'ncf': ['file.ncf'],
Expand Down

0 comments on commit e15f2b4

Please sign in to comment.