]> git.pld-linux.org Git - packages/libcgroup.git/blame - libcgroup-0.41-lex.patch
- rel 5; add patches from FC
[packages/libcgroup.git] / libcgroup-0.41-lex.patch
CommitLineData
9665627f
AM
1From a8c2e967e74d280cd3b8554af0c95d823647d1c0 Mon Sep 17 00:00:00 2001
2From: Jan Chaloupka <jchaloup@redhat.com>
3Date: Thu, 6 Feb 2014 11:43:18 +0100
4Subject: [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
10diff --git a/libcgroup-0.41/src/lex.l b/libcgroup-0.41/src/lex.l
11index 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--
241.8.5.3
25
This page took 0.079964 seconds and 4 git commands to generate.