Permalink
Browse files

syn-p5: store lineno always, for run-time warnings

analog to potion
  • Loading branch information...
1 parent ca32c9a commit dd3a787d1327d1030bcd0aec8b5fdeb7bcf1209c Reini Urban committed Dec 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 syn/syntax-p5.y
View
@@ -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

0 comments on commit dd3a787

Please sign in to comment.