Mercurial > vim
comparison runtime/autoload/dist/ft.vim @ 19968:1908e92b02fd
Update runtime files
Commit: https://github.com/vim/vim/commit/d1caa941d876181aae0ebebc6ea954045bf0da24
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 10 22:10:56 2020 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 10 Apr 2020 22:15:05 +0200 |
parents | d20ed2e5a776 |
children | 18a341a4919c |
comparison
equal
deleted
inserted
replaced
19967:f11b9ed4f9e1 | 19968:1908e92b02fd |
---|---|
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: 2020 Jan 02 | 4 " Last Change: 2020 Mar 30 |
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' |
323 return 0 | 323 return 0 |
324 endfunc | 324 endfunc |
325 | 325 |
326 func dist#ft#FTmm() | 326 func dist#ft#FTmm() |
327 let n = 1 | 327 let n = 1 |
328 while n < 10 | 328 while n < 20 |
329 let line = getline(n) | 329 let line = getline(n) |
330 if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)' | 330 if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)' |
331 setf objcpp | 331 setf objcpp |
332 return | 332 return |
333 endif | 333 endif |