Adam Strzelecki
07b13251d1
Parser: Fix location (line, col) for diagnostics
...
Previously parser was using lexMessage which was taking location from current
buffer position which was pointing after recently consumed token. But since
parser shows diagnostics about that token it should point to the location where
token starts.
This makes diagnostics like: `test.nim(2, 2) Error: ':' expected` point
properly at the beginning of the wrong token.
2015-04-21 11:32:13 +02:00
..
2015-02-20 18:31:39 +01:00
2015-02-24 18:05:13 +00:00
2014-08-28 23:48:42 +02:00
2015-04-20 21:25:49 +02:00
2015-04-07 15:47:18 +02:00
2014-08-28 09:38:14 +02:00
2015-04-01 22:32:15 +08:00
2015-04-13 23:49:41 +03:00
2015-04-20 21:24:49 +02:00
2015-04-07 15:47:18 +02:00
2015-04-19 02:42:40 +02:00
2015-04-07 15:47:18 +02:00
2015-04-07 15:47:18 +02:00
2015-04-13 23:49:41 +03:00
2015-04-07 15:47:18 +02:00
2015-04-09 09:36:18 +02:00
2015-04-07 15:47:18 +02:00
2014-11-03 22:50:55 +01:00
2015-04-11 10:01:08 +02:00
2015-02-24 00:13:27 +01:00
2014-08-28 09:38:14 +02:00
2015-04-07 15:47:18 +02:00
2014-08-28 09:38:14 +02:00
2015-04-07 15:47:18 +02:00
2015-03-07 15:43:36 +01:00
2015-04-07 15:47:18 +02:00
2015-03-04 03:30:43 +01:00
2014-08-28 09:38:14 +02:00
2015-02-16 02:56:40 +01:00
2015-03-16 23:24:33 +01:00
2014-08-28 09:38:14 +02:00
2015-01-27 01:36:19 +01:00
2014-08-28 09:38:14 +02:00
2015-03-22 09:31:15 +01:00
2015-03-28 15:08:29 +01:00
2015-04-20 22:53:46 +02:00
2015-04-07 15:47:18 +02:00
2015-04-06 23:21:51 +02:00
2015-04-21 11:32:13 +02:00
2014-08-28 09:38:14 +02:00
2015-03-01 00:16:46 +01:00
2015-03-18 11:42:36 +01:00
2015-04-06 23:21:51 +02:00
2014-09-21 18:39:00 +02:00
2015-03-28 15:07:55 +01:00
2015-02-22 23:23:22 +01:00
2015-04-21 11:32:12 +02:00
2015-02-28 23:35:35 +01:00
2015-03-10 12:32:48 +01:00
2015-02-15 16:20:32 +00:00
2015-02-07 18:11:00 +01:00
2015-01-12 23:04:53 +01:00
2015-03-04 03:30:43 +01:00
2014-08-28 09:38:14 +02:00
2015-01-28 14:58:31 +00:00
2015-01-06 15:26:33 +01:00
2015-03-29 13:16:22 +02:00
2015-03-26 02:12:38 +01:00
2015-04-21 11:32:13 +02:00
2014-08-28 09:38:14 +02:00
2015-03-08 13:08:19 +01:00
2015-02-15 16:20:32 +00:00
2014-08-28 09:38:14 +02:00
2015-03-21 20:38:27 +01:00
2015-04-19 02:42:40 +02:00
2014-10-29 18:57:03 -04:00
2014-08-28 09:38:14 +02:00
2015-04-11 10:01:10 +02:00
2015-04-07 15:47:18 +02:00
2014-08-28 09:38:14 +02:00
2015-04-01 22:32:15 +08:00
2015-04-08 23:30:03 +08:00
2014-08-28 09:38:14 +02:00
2015-04-06 23:21:51 +02:00
2015-04-06 23:21:52 +02:00
2015-03-28 00:15:04 +01:00
2015-04-20 21:25:49 +02:00
2015-03-28 00:15:04 +01:00
2015-04-20 21:25:49 +02:00
2015-02-20 20:01:25 +01:00
2015-04-10 14:40:53 +02:00
2015-03-06 12:20:15 +13:00
2015-04-11 10:01:10 +02:00
2015-01-06 15:26:33 +01:00
2015-03-28 00:15:04 +01:00
2015-03-14 01:26:32 +01:00
2015-04-11 10:01:10 +02:00
2015-04-11 10:01:10 +02:00
2015-04-04 01:19:31 +02:00
2015-04-20 21:25:49 +02:00
2015-04-20 21:25:49 +02:00
2015-02-22 23:23:22 +01:00
2015-04-20 21:25:49 +02:00
2015-01-30 03:04:46 +01:00
2015-01-29 03:08:41 +01:00
2014-08-28 09:38:14 +02:00
2014-08-11 20:38:28 +02:00
2015-03-18 11:42:37 +01:00
2015-04-20 11:36:13 +02:00
2015-02-09 00:08:55 +01:00
2015-04-21 08:17:40 +02:00
2015-03-06 12:20:15 +13:00
2015-04-20 11:36:13 +02:00
2015-04-20 11:36:13 +02:00
2015-04-13 14:57:23 -05:00
2015-04-20 11:36:13 +02:00
2015-01-06 15:26:33 +01:00
2015-01-06 15:26:33 +01:00
2015-03-23 13:10:18 +01:00