Autocomplete: except text between quotes.

Summary:
text that placed between quotes is
excepted from recognize keywords. Previously
when inside was string like this:
'images.normal: "123.png";' the autocomplete parser
is recognize the dot, that placed inside quotes.
It is broke the searching keyword in candidates tree.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2958
This commit is contained in:
Mykyta Biliavskyi 2015-08-20 11:09:37 +09:00 committed by ChunEon Park
parent 08a2d9d038
commit 88055de59c
1 changed files with 13 additions and 2 deletions

View File

@ -157,8 +157,19 @@ context_lexem_thread_cb(void *data, Ecore_Thread *thread EINA_UNUSED)
while (cur && cur <= end)
{
if ((cur!=end) && (!strncmp(cur, quot, quot_len)))
quot_cnt++;
if ((cur != end) && (!strncmp(cur, quot, quot_len)))
{
/*TODO: add exception for case '\"'*/
quot_cnt++;
cur++;
continue;
}
if (quot_cnt % 2)
{
cur++;
continue;
}
//Check inside comment
if (*cur == '/')