vim-textobj-sentence icon indicating copy to clipboard operation
vim-textobj-sentence copied to clipboard

Add semicolon (';') as a sentence delimiter

Open lafrenierejm opened this issue 7 years ago • 3 comments

Include ';' in the first regular expression grouping in l:re_term.

lafrenierejm avatar Dec 30 '16 21:12 lafrenierejm

Thanks for the pull request.

This is different behavior from the default sentence object.

Let me think about this. It might be better as a configurable option.

reedes avatar Jan 12 '17 01:01 reedes

It might also be worth pointing out that the method of handling semicolons proposed by the PR does not correctly follow the grammatic definition of a sentence: it is incapable of recognizing the use of semicolons to delimit items in a list.

lafrenierejm avatar Jan 12 '17 02:01 lafrenierejm

I agree this is useful in some circumstances but do not thing it should be the default. This should be arranged somehow similar to #17 so that it is a user configurable option. Perhaps after that is merged this could just document how to add ; as a terminator using that feature.

alerque avatar Aug 25 '20 07:08 alerque