forked from enlightenment/efl
elm_code: Fix syntax crash on trailing newline in multiline macro
@fix
This commit is contained in:
parent
44804a9579
commit
4596d795aa
|
@ -167,7 +167,7 @@ elm_code_syntax_parse_line(Elm_Code_Syntax *syntax, Elm_Code_Line *line)
|
|||
else if (previous_type == ELM_CODE_TOKEN_TYPE_PREPROCESSOR)
|
||||
{
|
||||
elm_code_line_token_add(line, 0, length, 1, ELM_CODE_TOKEN_TYPE_PREPROCESSOR);
|
||||
if (content[length-1] == '\\')
|
||||
if (length >= 1 && content[length-1] == '\\')
|
||||
{
|
||||
Elm_Code_Token *token = eina_list_last_data_get(line->tokens);
|
||||
token->continues = EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue