diff options
| author | Elwardi <elwardifadeli@gmail.com> | 2022-01-10 11:31:00 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-10 20:30:18 +0100 |
| commit | 2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4 (patch) | |
| tree | 98bb495d7681c8d9b767d8cc1552bd1508bd0229 /after | |
| parent | highlights(llvm): import highlight queries from upstream (diff) | |
| download | nvim-treesitter-2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4.tar nvim-treesitter-2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4.tar.gz nvim-treesitter-2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4.tar.bz2 nvim-treesitter-2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4.tar.lz nvim-treesitter-2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4.tar.xz nvim-treesitter-2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4.tar.zst nvim-treesitter-2fb4e3ec9433b9d8d35d7b198a10e6332638ffd4.zip | |
Force-ignore ignorecase option
Diffstat (limited to 'after')
| -rw-r--r-- | after/ftdetect/foam.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/after/ftdetect/foam.vim b/after/ftdetect/foam.vim index 7019834f7..35ec34ea4 100644 --- a/after/ftdetect/foam.vim +++ b/after/ftdetect/foam.vim @@ -10,14 +10,14 @@ function! s:foamFile(path) let l:f = -1 let l:o = -1 for line in lines - if (match(line, 'FoamFile') >= 0) + if (match(line, '\CFoamFile') >= 0) let l:f = index(lines, line) endif - if (match(line, 'object') >= 0) + if (match(line, '\Cobject') >= 0) let l:o = index(lines, line) endif endfor - if ((l:o >= 0) && (l:f) && (l:o > l:f)) + if ((l:o >= 0) && (l:f >= 0) && (l:o > l:f)) set filetype=foam endif endfunction |
