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:
parent
0c4c975509
commit
0fe6e1955a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user