- line = sci_get_line_from_position(sci, pos);
- line_start = sci_get_position_from_line(sci, line);
- startword = pos - line_start;
- endword = pos - line_start;
- word[0] = '\0';
- chunk = sci_get_line(sci, line);
- const char *punctuation = ":.";
- if (wc == NULL)
wc = GEANY_WORDCHARS;
- // first, loop backwards until punctuation ScopeA::ScopeB::Function
- // ^
- while (endword > 0 && (strchr(wc, chunk[endword - 1]) || ! IS_ASCII(chunk[endword - 1])))
good call