completion: Update to new gstreamer core helpers
[platform/upstream/gstreamer.git] / ges / parse.l
1 %{
2 #include "ges-structure-parser.h"
3
4 %}
5
6 %option noyywrap
7 %option nounput
8 %option reentrant
9 %option extra-type="GESStructureParser *"
10 %option never-interactive
11 %option noinput
12 %option nounistd
13
14 CLIP            [ ]+\+clip[ ]+
15 TEST_CLIP       [ ]+\+test-clip[ ]+
16 TRANSITION      [ ]+\+transition[ ]+
17 EFFECT          [ ]+\+effect[ ]+
18
19 SETTER          [ ]+set-[^ ]+[ ]+
20
21 %%
22
23 \"(\\.|[^"])*\"  {
24                 ges_structure_parser_parse_string (yyextra, yytext, FALSE);
25 }
26
27 {CLIP}|{TRANSITION}|{EFFECT}|{TEST_CLIP}   {
28                 ges_structure_parser_parse_symbol (yyextra, yytext);
29 }
30
31 {SETTER}         {
32         ges_structure_parser_parse_setter (yyextra, yytext);
33 }
34
35 [ \t\n]+        {
36                 ges_structure_parser_parse_whitespace (yyextra);
37 }
38
39 .               {
40                 /* add everything else */
41                 ges_structure_parser_parse_default (yyextra, yytext);
42 }
43
44 %%