Merge remote-tracking branch 'lenormf/select-arbitrary-punctuation'

This commit is contained in:
Maxime Coste 2016-07-27 00:14:49 +01:00
commit 35f1ad100e
7 changed files with 14 additions and 0 deletions

View File

@ -996,6 +996,14 @@ void select_object(Context& context, NormalParams params)
sur.opening, sur.closing, sur.opening, sur.closing,
level, flags)); level, flags));
} }
if (is_punctuation(*cp))
{
StringView strview_codepoint{String(*cp)};
return select<mode>(context, std::bind(select_surrounding, _1, _2,
strview_codepoint, strview_codepoint,
level, flags));
}
}, get_title(), }, get_title(),
"b,(,): parenthesis block\n" "b,(,): parenthesis block\n"
"B,{,}: braces block \n" "B,{,}: braces block \n"

View File

@ -0,0 +1 @@
<a-a>/

View File

@ -0,0 +1 @@
foo(/%(b)ar/)

View File

@ -0,0 +1 @@
/bar/

View File

@ -0,0 +1 @@
<a-i>/

1
test/unit/inner/slash/in Normal file
View File

@ -0,0 +1 @@
foo(/%(b)ar/)

View File

@ -0,0 +1 @@
bar