zooster
4055e6055b
AstGen: disallow leading zeroes in int literals and int types
...
This makes `0123` and `u0123` etc. illegal.
I'm now confident that this is a good change because
I actually caught two C header translation mistakes in `haiku.zig` with this.
Clearly, `0123` being octal in C (TIL) can cause confusion, and we make this easier to read by
requiring `0o` as the prefix and now also disallowing leading zeroes in integers.
For consistency and because it looks weird, we disallow it for integer types too (e.g. `u0123`).
Fixes #11963
Fixes #12417
2022-08-18 19:54:51 +03:00
..
2022-08-18 14:17:01 +02:00
2022-08-18 18:02:19 +02:00
2022-08-12 11:41:09 +03:00
2022-08-18 14:17:01 +02:00
2022-08-10 19:54:45 +02:00
2022-07-30 13:24:03 +03:00
2022-08-12 11:40:37 +03:00
2022-08-18 19:54:51 +03:00
2022-08-18 18:02:19 +02:00
2022-04-27 16:45:23 -07:00
2022-07-26 11:25:49 -07:00
2022-08-08 14:26:10 +02:00
2021-11-26 19:59:33 -07:00
2022-07-28 22:21:24 -07:00
2022-06-11 23:49:33 +03:00
2022-08-10 16:24:04 -07:00
2022-07-03 18:41:43 -07:00
2022-04-26 16:48:56 -05:00
2021-11-30 23:32:47 +00:00
2020-12-07 17:27:09 -07:00
2022-05-13 16:43:59 -04:00
2022-04-06 11:50:23 -07:00
2022-04-18 23:06:49 -07:00
2022-07-25 22:04:30 +03:00
2022-07-02 20:41:47 -07:00
2022-01-02 13:16:17 -07:00
2022-01-02 13:16:17 -07:00
2022-08-11 06:22:05 -04:00
2022-08-12 11:40:37 +03:00
2022-08-11 06:22:05 -04:00
2022-04-29 22:50:34 -04:00
2022-08-10 23:23:30 -07:00
2022-06-17 16:38:59 -07:00
2022-05-06 22:41:00 -07:00
2022-08-12 11:40:37 +03:00
2022-04-18 23:06:49 -07:00
2022-04-26 17:52:21 -04:00
2022-08-17 23:03:04 +03:00
2022-06-29 22:06:27 -04:00
2022-07-26 11:25:49 -07:00
2022-08-18 17:18:57 +03:00
2022-07-23 15:04:02 +03:00
2022-07-21 13:55:29 -07:00
2022-08-11 00:46:44 -07:00
2022-06-17 16:38:59 -07:00
2022-01-07 00:06:06 -05:00
2022-08-05 15:38:48 +03:00
2022-08-17 23:03:04 +03:00
2022-07-30 12:36:11 -07:00
2022-08-17 13:02:57 -07:00
2022-06-17 16:38:59 -07:00
2021-11-30 23:32:47 +00:00
2022-07-09 14:04:38 -07:00
2021-09-07 21:49:08 -06:00
2020-09-21 21:14:01 -07:00
2021-09-01 17:54:07 -07:00
2022-02-03 13:43:51 -07:00
2022-02-03 13:43:51 -07:00
2022-02-03 14:01:32 -07:00
2022-07-28 22:21:24 -07:00
2022-07-28 22:21:24 -07:00
2022-02-03 14:01:32 -07:00
2022-07-12 18:38:11 -07:00
2022-07-01 22:13:30 -07:00
2022-08-15 21:57:33 +02:00