Skip to content

Commit

Permalink
syn: store lineno always, for run-time warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Dec 8, 2013
1 parent 1637066 commit ca32c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syn/syntax.y
Expand Up @@ -332,7 +332,7 @@ sep = (end-of-line | comma) (space | comment | end-of-line | comma)*
comment = '#' (!end-of-line utf8)*
space = ' ' | '\f' | '\v' | '\t'
end-of-line = ( '\r\n' | '\n' | '\r' )
{ ++G->lineno; if (P->flags & EXEC_DEBUG) { P->line = yylastline(G, thunk->begin); }}
{ ++G->lineno; P->line = yylastline(G, thunk->begin); }
end-of-file = !.

sig = args+ end-of-file
Expand Down

0 comments on commit ca32c9a

Please sign in to comment.