From a0634dc04e62e163ca54333007fc2f210329e9cd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 10 Dec 2013 15:47:27 +0900 Subject: [PATCH] Evas filters: Allow empty commands If an instruction line contains only ';', skip it. This is a convenience for Textblock and C++ style comments. --- src/lib/evas/filters/evas_filter_parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c index 87e8ec6..7ffc4f3 100644 --- a/src/lib/evas/filters/evas_filter_parser.c +++ b/src/lib/evas/filters/evas_filter_parser.c @@ -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, "("); -- 2.7.4