Add support for strings

fixes #53
This commit is contained in:
Maxime Coste 2014-02-15 00:35:01 +00:00
parent ea4cb2cc3e
commit daeefe2f33
2 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,7 @@ object you want.
* _a_, _<_ or _>_: select the enclosing <> block * _a_, _<_ or _>_: select the enclosing <> block
* _"_: select the enclosing double quoted string * _"_: select the enclosing double quoted string
* _'_: select the enclosing single quoted string * _'_: select the enclosing single quoted string
* _`_: select the enclosing grave quoted string
* _w_: select the whole word * _w_: select the whole word
* _W_: select the whole WORD * _W_: select the whole WORD
* _s_: select the sentence * _s_: select the sentence

View File

@ -855,6 +855,7 @@ void select_object(Context& context, int param)
{ { '<', '>' }, 'a' }, { { '<', '>' }, 'a' },
{ { '"', '"' }, 'Q' }, { { '"', '"' }, 'Q' },
{ { '\'', '\'' }, 'q' }, { { '\'', '\'' }, 'q' },
{ { '`', '`' }, 'g' },
}; };
for (auto& sur : surrounding_pairs) for (auto& sur : surrounding_pairs)
{ {
@ -870,6 +871,7 @@ void select_object(Context& context, int param)
"a,<,>: angle block \n" "a,<,>: angle block \n"
"\",Q: double quote string\n" "\",Q: double quote string\n"
"',q: single quote string\n" "',q: single quote string\n"
"`,g: grave quote string \n"
"w: word \n" "w: word \n"
"W: WORD \n" "W: WORD \n"
"s: sentence \n" "s: sentence \n"