Navigation Menu

Skip to content

Commit

Permalink
syn-p5: store lineno always, for run-time warnings
Browse files Browse the repository at this point in the history
analog to potion
  • Loading branch information
Reini Urban committed Dec 8, 2013
1 parent ca32c9a commit dd3a787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syn/syntax-p5.y
Expand Up @@ -476,7 +476,7 @@ comment = '#' (!end-of-line utf8)*
# \205 U+85 NEL
space = ' ' | '\f' | '\v' | '\t' | '\205' | '\240' | end-of-line
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 = !'\0'
id = < IDFIRST utfw* > { $$ = PN_STRN(yytext, yyleng) }
# isWORDCHAR && IDFIRST, no numbers
Expand Down

0 comments on commit dd3a787

Please sign in to comment.