Fix 'Highlight.LengthBefore' when strings have non-ASCII characters.
[GB.EVAL] * BUG: Fix 'Highlight.LengthBefore' when strings have non-ASCII characters.
This commit is contained in:
parent
7179b5f18d
commit
e1fd4f9e78
1 changed files with 3 additions and 2 deletions
|
@ -397,7 +397,6 @@ static void analyze(EVAL_ANALYZE *result)
|
||||||
next_type = type;
|
next_type = type;
|
||||||
|
|
||||||
get_symbol(*pattern, &symbol, &len);
|
get_symbol(*pattern, &symbol, &len);
|
||||||
len_before += len;
|
|
||||||
|
|
||||||
space_before = space_after;
|
space_before = space_after;
|
||||||
space_after = FALSE;
|
space_after = FALSE;
|
||||||
|
@ -574,6 +573,7 @@ static void analyze(EVAL_ANALYZE *result)
|
||||||
{
|
{
|
||||||
add_result(result, symbol, len);
|
add_result(result, symbol, len);
|
||||||
add_data(RT_OPERATOR, len);
|
add_data(RT_OPERATOR, len);
|
||||||
|
len_before += len;
|
||||||
|
|
||||||
/*for(;;)
|
/*for(;;)
|
||||||
{
|
{
|
||||||
|
@ -636,9 +636,10 @@ static void analyze(EVAL_ANALYZE *result)
|
||||||
{
|
{
|
||||||
add_result_char(result, '"');
|
add_result_char(result, '"');
|
||||||
len += 2;
|
len += 2;
|
||||||
len_before += 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
len_before += len;
|
||||||
|
|
||||||
if (EVAL->rewrite)
|
if (EVAL->rewrite)
|
||||||
{
|
{
|
||||||
if (type == RT_STRING)
|
if (type == RT_STRING)
|
||||||
|
|
Loading…
Reference in a new issue