mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/syck.c, lib/syck.h, lib/token.c, lib/gram.c: count line numbers
only if line pointer has increased. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f55b68681
commit
f5b2e6b149
5 changed files with 77 additions and 69 deletions
|
|
@ -155,7 +155,7 @@ struct _syck_parser {
|
|||
// Custom buffer size
|
||||
size_t bufsize;
|
||||
// Buffer pointers
|
||||
char *buffer, *lineptr, *toktmp, *token, *cursor, *marker, *limit;
|
||||
char *buffer, *linectptr, *lineptr, *toktmp, *token, *cursor, *marker, *limit;
|
||||
// Line counter
|
||||
int linect;
|
||||
// Last token from yylex()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue