2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

parser: combine SUB_ID and SUB_ID_WS to reduce code duplication

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Tyler Hicks <tyhicks@canonical.com>
This commit is contained in:
John Johansen 2016-05-31 15:38:36 -05:00 committed by Tyler Hicks
parent 0c4c975509
commit 0fe6e1955a

View File

@ -322,15 +322,7 @@ LT_EQUAL <=
}
}
<SUB_ID>{
({IDS}|{QUOTED_ID}) {
/* Go into separate state to match generic ID strings */
yylval.id = processid(yytext, yyleng);
POP_AND_RETURN(TOK_ID);
}
}
<SUB_ID_WS>{
<SUB_ID,SUB_ID_WS>{
({IDS}|{QUOTED_ID}) {
/* Go into separate state to match generic ID strings */
yylval.id = processid(yytext, yyleng);