comparison runtime/autoload/dist/ft.vim @ 19039:d20ed2e5a776

Update a few runtime files. Commit: https://github.com/vim/vim/commit/d7df279808f75f7a4af8dd48deae73a9b727ac3b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 2 21:34:42 2020 +0100 Update a few runtime files.
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Jan 2020 21:45:04 +0100
parents bd7461db24b3
children 1908e92b02fd
comparison
equal deleted inserted replaced
19038:b8825a7664f3 19039:d20ed2e5a776
1 " Vim functions for file type detection 1 " Vim functions for file type detection
2 " 2 "
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2019 Mar 08 4 " Last Change: 2020 Jan 02
5 5
6 " These functions are moved here from runtime/filetype.vim to make startup 6 " These functions are moved here from runtime/filetype.vim to make startup
7 " faster. 7 " faster.
8 8
9 " Line continuation is used here, remove 'C' from 'cpoptions' 9 " Line continuation is used here, remove 'C' from 'cpoptions'
296 endif 296 endif
297 endfunc 297 endfunc
298 298
299 func dist#ft#FTmms() 299 func dist#ft#FTmms()
300 let n = 1 300 let n = 1
301 while n < 10 301 while n < 20
302 let line = getline(n) 302 let line = getline(n)
303 if line =~ '^\s*\(%\|//\)' || line =~ '^\*' 303 if line =~ '^\s*\(%\|//\)' || line =~ '^\*'
304 setf mmix 304 setf mmix
305 return 305 return
306 endif 306 endif