Skip to content

Commit 2fb4e3e

Browse files
FoamSciencetheHamsta
authored andcommitted
Force-ignore ignorecase option
1 parent 0d53066 commit 2fb4e3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

after/ftdetect/foam.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ function! s:foamFile(path)
1010
let l:f = -1
1111
let l:o = -1
1212
for line in lines
13-
if (match(line, 'FoamFile') >= 0)
13+
if (match(line, '\CFoamFile') >= 0)
1414
let l:f = index(lines, line)
1515
endif
16-
if (match(line, 'object') >= 0)
16+
if (match(line, '\Cobject') >= 0)
1717
let l:o = index(lines, line)
1818
endif
1919
endfor
20-
if ((l:o >= 0) && (l:f) && (l:o > l:f))
20+
if ((l:o >= 0) && (l:f >= 0) && (l:o > l:f))
2121
set filetype=foam
2222
endif
2323
endfunction

0 commit comments

Comments
 (0)