mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
Force-ignore ignorecase option
This commit is contained in:
parent
0d53066533
commit
2fb4e3ec94
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue