summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJack Danger Canty <[email protected]>2013-08-13 09:50:38 -0700
committerJack Danger Canty <[email protected]>2013-08-13 09:53:52 -0700
commit2bf4952284b6b7cfac2b4bd91d459fc94f1ece91 (patch)
tree0e00e1ac43a6e890eb1c3834da6b2d0b78ed97e7 /src
parent9827462e38f7dfb52e3d7bb61ef183e0cd9189ff (diff)
downloadmruby-2bf4952284b6b7cfac2b4bd91d459fc94f1ece91.tar.gz
mruby-2bf4952284b6b7cfac2b4bd91d459fc94f1ece91.zip
Adding line numbers to the output of mirb.
Before: > "hi" hi > d (mirb):1: undefined method 'd' for main (NoMethodError) > d (mirb):1: undefined method 'd' for main (NoMethodError) > "hi" hi > "#{'}" line 1: unterminated string meets end of file After > "hi" hi > d (mirb):2: undefined method 'd' for main (NoMethodError) > d (mirb):3: undefined method 'd' for main (NoMethodError) > "hi" hi > "#{'}" line 5: unterminated string meets end of file
Diffstat (limited to 'src')
-rw-r--r--src/parse.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index c226a4e84..73d2d2758 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -5167,7 +5167,6 @@ mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s)
memcpy(p, s, len + 1);
c->filename = p;
- c->lineno = 1;
}
return c->filename;
}