diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-28 01:34:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-28 01:34:09 -0400 |
commit | 58ee0624d54fede51c1e740e9c0c15f509ed24cc (patch) | |
tree | 2c2434dce3adee34bd5656d098bb41153dd36102 | |
parent | ccdc897dc1268ff65f6d897f9eef7821b416d0ae (diff) | |
download | dimension-58ee0624d54fede51c1e740e9c0c15f509ed24cc.tar.xz |
Fix line calculation in comment tokenizer.
-rw-r--r-- | dimension/tokenize.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dimension/tokenize.c b/dimension/tokenize.c index ee0b9a1..4eb6a62 100644 --- a/dimension/tokenize.c +++ b/dimension/tokenize.c @@ -37,6 +37,7 @@ dmnsn_tokenize_comment(char *map, size_t size, ++*next; } while (*next - map < size && **next != '\n'); + ++*next; ++*line; *col = 0; } else if (*(*next + 1) == '*') { |