Closed haruyama closed 7 years ago
Why it is closed? Please describe it.
cf. https://github.com/Shougo/context_filetype.vim/issues/31#issuecomment-319808856
This PR disables without end pattern
support.
I suppose that we need another approach for improving cgo support.
I suppose that supporting cgo-like range (end pattern is more important than start) needs another search_range(), which searches end pattern first and start pattern second, contrary to existing search_range().
Oh...
Works fine for a file with single C-style comment, but does not work for a file with multi C-style comments.
I suppose that range searching scheme of current context_filetype.vim sometimes does not work correctly. By example:
We expect [4, 6] But start pattern matches Line 1 and end pattern matches Line 6; [1, 6].