forked from enlightenment/enventor
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:
parent
08a2d9d038
commit
88055de59c
|
@ -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 == '/')
|
||||
|
|
Loading…
Reference in New Issue