Mercurial > blahgd
changeset 121:72717642e264
format 3 posts: handle '@' characters
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 12 Feb 2011 18:37:40 -0500 |
parents | bc25e74228ff |
children | a206e0c5fe0e |
files | post_fmt3.l |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/post_fmt3.l Sat Feb 12 18:37:16 2011 -0500 +++ b/post_fmt3.l Sat Feb 12 18:37:40 2011 -0500 @@ -24,7 +24,7 @@ -{1,3} { yylval.ptr = strdup(yytext); return DASH; } `{1,2} { yylval.ptr = strdup(yytext); return OQUOT; } '{1,2} { yylval.ptr = strdup(yytext); return CQUOT; } -[~".,()/=<>!:;\$+?] { yylval.ptr = strdup(yytext); return SCHAR; } +[~".,()/=<>!:;\$+?@] { yylval.ptr = strdup(yytext); return SCHAR; } [A-Za-z0-9]+ { yylval.ptr = strdup(yytext); return WORD; } .|\n { yyerror2("post text contains invalid characters", yytext); yyterminate(); } %%