]> git.pld-linux.org Git - packages/libcgroup.git/blob - libcgroup-0.41-lex.patch
bcd536a2e43e27b605657e12800897ced0f79369
[packages/libcgroup.git] / libcgroup-0.41-lex.patch
1 From a8c2e967e74d280cd3b8554af0c95d823647d1c0 Mon Sep 17 00:00:00 2001
2 From: Jan Chaloupka <jchaloup@redhat.com>
3 Date: Thu, 6 Feb 2014 11:43:18 +0100
4 Subject: [PATCH] lex updated, additional '\' char for ID token
5
6 ---
7  libcgroup-0.41/src/lex.l | 2 +-
8  1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/libcgroup-0.41/src/lex.l b/libcgroup-0.41/src/lex.l
11 index 1b357db..d7bf575 100644
12 --- a/libcgroup-0.41/src/lex.l
13 +++ b/libcgroup-0.41/src/lex.l
14 @@ -43,7 +43,7 @@ jmp_buf parser_error_env;
15  "namespace"    {return NAMESPACE;}
16  "template"     {return TEMPLATE;}
17  "default"      {return DEFAULT;}
18 -[a-zA-Z0-9_\-\/\.\,\%\@]+ {yylval.name = strdup(yytext); return ID;}
19 +[a-zA-Z0-9_\-\/\.\,\%\@\\]+ {yylval.name = strdup(yytext); return ID;}
20  \"[^"]*\" {yylval.name = strdup(yytext+1); yylval.name[strlen(yylval.name)-1] = '\0'; return ID; }
21  .      {return yytext[0];}
22  %%
23 -- 
24 1.8.5.3
25
This page took 0.021448 seconds and 2 git commands to generate.