forked from enlightenment/efl
Eolian/Lexer: fix support of const parameters.
The syntax to define a parameter of a property as const is as following: set { data: const; } When no space was present between ':' and "const", a syntax error was occurring.
This commit is contained in:
parent
61f3f68670
commit
23b97bd30d
File diff suppressed because it is too large
Load Diff
|
@ -314,9 +314,10 @@ _eo_tokenizer_accessor_param_get(Eo_Tokenizer *toknz, char *p)
|
|||
if (param == NULL) ABORT(toknz, "calloc Eo_Accessor_Param failure");
|
||||
|
||||
/* Remove the colon and spaces - we just need the param name */
|
||||
while (*p == ':') p--;
|
||||
while (*p != ':') p--;
|
||||
p--;
|
||||
while (*p == ' ') p--;
|
||||
param->name = _eo_tokenizer_token_get(toknz, p);
|
||||
param->name = _eo_tokenizer_token_get(toknz, p + 1);
|
||||
|
||||
return param;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue