e1a083f6ddc2ee902c62a8a1ea36121b1a573a4d
[claws.git] / src / quote_fmt_lex.l
1 %{
2 #include "quote_fmt_lex.h"
3 #include "quote_fmt_parse.h"
4 %}
5
6 %option prefix="quote_fmt"
7 %option outfile="lex.yy.c"
8
9 %%
10
11 "%d" /* date */ return SHOW_DATE;
12 "%f" /* from */ return SHOW_FROM;
13 "%N" /* full name */ return SHOW_FULLNAME;
14 "%F" /* first name */ return SHOW_FIRST_NAME;
15 "%L" /* last name */ return SHOW_LAST_NAME;
16 "%I" /* initial of sender */ return SHOW_SENDER_INITIAL;
17 "%s" /* subject */ return SHOW_SUBJECT;
18 "%t" /* to */ return SHOW_TO;
19 "%c" /* cc */ return SHOW_CC;
20 "%n" /* newsgroups */ return SHOW_NEWSGROUPS;
21 "%i" /* message-id */ return SHOW_MESSAGEID;
22 "%r" /* references */ return SHOW_REFERENCES;
23 "%M" /* message */ return SHOW_MESSAGE;
24 "%Q" /* quoted message */ return SHOW_QUOTED_MESSAGE;
25 "%m" /* message with no signature */ return SHOW_MESSAGE_NO_SIGNATURE;
26 "%q" /* quoted message with no signature */ return SHOW_QUOTED_MESSAGE_NO_SIGNATURE;
27 "\\\%" /* % */ return SHOW_PERCENT;
28 "\\\\" /* \ */ return SHOW_BACKSLASH;
29 "\\t"|"\t" /* tab */ return SHOW_TAB;
30 "\\n"|"\n" /* return */ return SHOW_EOL;
31 "\\?" /* ? */ return SHOW_QUESTION_MARK;
32 "\\|" return SHOW_PIPE;
33 "\\{" return SHOW_OPARENT;
34 "\\}" return SHOW_CPARENT;
35 "?d" /* query date */ return QUERY_DATE;
36 "?f" /* query from */ return QUERY_FROM;
37 "?N"|"?F"|"?I" /* query from name */ return QUERY_FULLNAME;
38 "?s" /* query subject */ return QUERY_SUBJECT;
39 "?t" /* query to */ return QUERY_TO;
40 "?c" /* query cc */ return QUERY_CC;
41 "?n" /* query newsgroups */ return QUERY_NEWSGROUPS;
42 "?i" /* query message-id */ return QUERY_MESSAGEID;
43 "?r" /* query references */ return QUERY_REFERENCES;
44 "|f" /* insert file */ return INSERT_FILE;
45 "|p" /* insert program output */ return INSERT_PROGRAMOUTPUT;
46 "{" return OPARENT;
47 "}" return CPARENT;
48 . { yylval.chr = yytext[0]; return CHARACTER; }
49
50 %%