Evas filters: Allow empty commands
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 10 Dec 2013 06:47:27 +0000 (15:47 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 7 Feb 2014 08:33:16 +0000 (17:33 +0900)
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

index 87e8ec6..7ffc4f3 100644 (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, "(");