starting with # have the 1st line missed from the output).
return 0;
}
- /* ignore first line when it's started with a # */
- if (YYCURSOR == SCNG(yy_start) && *YYCURSOR == '#') {
+ /* ignore first line when it's started with a #! */
+ if (YYCURSOR == SCNG(yy_start) && *YYCURSOR == '#' && *(YYCURSOR + 1) == '!') {
while (++YYCURSOR < YYLIMIT) {
if (*YYCURSOR == '\n') {
++YYCURSOR;
return 0;
}
- /* ignore first line when it's started with a # */
- if (YYCURSOR == SCNG(yy_start) && *YYCURSOR == '#') {
+ /* ignore first line when it's started with a #! */
+ if (YYCURSOR == SCNG(yy_start) && *YYCURSOR == '#' && *(YYCURSOR + 1) == '!') {
while (++YYCURSOR < YYLIMIT) {
if (*YYCURSOR == '\n') {
++YYCURSOR;