if (nb == 1)
{
nb = 0;
- ++ls->column;
+ ++ls->icolumn;
+ ls->column = ls->icolumn;
}
else --nb;
next_char(ls);
if (++ls->line_number >= INT_MAX)
eo_lexer_syntax_error(ls, "chunk has too many lines");
- ls->column = 0;
+ ls->icolumn = ls->column = 0;
}
/* go to next line and strip leading whitespace */
str = eina_strbuf_string_get(ls->buff);
*kwid = (int)(uintptr_t)eina_hash_find(keyword_map,
str);
- ls->column = col;
+ ls->column = col + 1;
if (at_kw && *kwid == 0)
eo_lexer_syntax_error(ls, "invalid keyword");
*value = str;
str = eina_strbuf_string_get(ls->buff);
*kwid = (int)(uintptr_t)eina_hash_find(keyword_map, str);
*value = str;
- ls->column = col;
+ ls->column = col + 1;
return TOK_VALUE;
}
str = eina_strbuf_string_get(ls->buff);
*kwid = (int)(uintptr_t)eina_hash_find(keyword_map, str);
*value = str;
- ls->column = col;
+ ls->column = col + 1;
return TOK_VALUE;
}
ls->stream_end = ls->stream + eina_file_size_get(f);
ls->source = eina_stringshare_add(source);
ls->line_number = 1;
- ls->column = 0;
+ ls->icolumn = ls->column = 0;
next_char(ls);
}