mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +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:
committed by
Tyler Hicks
parent
0c4c975509
commit
0fe6e1955a
@@ -322,15 +322,7 @@ LT_EQUAL <=
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<SUB_ID>{
|
<SUB_ID,SUB_ID_WS>{
|
||||||
({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>{
|
|
||||||
({IDS}|{QUOTED_ID}) {
|
({IDS}|{QUOTED_ID}) {
|
||||||
/* Go into separate state to match generic ID strings */
|
/* Go into separate state to match generic ID strings */
|
||||||
yylval.id = processid(yytext, yyleng);
|
yylval.id = processid(yytext, yyleng);
|
||||||
|
Reference in New Issue
Block a user