Evas filters: Allow empty commands

If an instruction line contains only ';', skip it.
This is a convenience for Textblock and C++ style comments.
This commit is contained in:
Jean-Philippe Andre 2013-12-10 15:47:27 +09:00
parent 0450e027e7
commit a0634dc04e
1 changed files with 3 additions and 0 deletions

View File

@ -1057,6 +1057,9 @@ evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str)
break;
}
// Empty command
if (next == token + 1) continue;
// Parse "instrname(options)"
options = token;
instrname = strsep(&options, "(");