We normaly transition from GOTDEFS to STARTDEFS on whitespace, but

if that whitespace is followed by a comma, we want to treat it as
part of a list and not transition.
This commit is contained in:
Todd C. Miller
2011-03-17 16:36:13 -04:00
parent b7487ae489
commit 6170002e6f
2 changed files with 1066 additions and 1047 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -115,6 +115,11 @@ DEFVAR [a-z_]+
%x INSTR %x INSTR
%% %%
<GOTDEFS>[[:blank:]]*,[[:blank:]]* {
LEXTRACE(", ");
return ',';
} /* return ',' */
<GOTDEFS>[[:blank:]]+ BEGIN STARTDEFS; <GOTDEFS>[[:blank:]]+ BEGIN STARTDEFS;
<STARTDEFS>{DEFVAR} { <STARTDEFS>{DEFVAR} {