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-03 21:19:41 +02:00
2022-08-18 19:54:51 +03:00
2022-06-11 23:49:33 +03:00
2022-08-09 16:19:55 +03:00
2022-05-09 18:51:46 +02:00
2022-07-01 00:09:36 +03:00
2022-07-06 16:23:42 -07:00
2022-08-15 11:25:51 +03:00
2022-08-14 23:12:48 +03:00
2022-06-25 21:27:56 -07:00
2022-05-11 15:43:18 -04:00
2022-07-12 18:38:11 -07:00
2022-07-23 13:52:16 +03:00
2022-07-16 11:46:13 +09:00
2022-07-23 15:30:12 +03:00
2022-05-04 21:26:48 +02:00
2022-07-13 16:10:41 -07:00
2022-08-11 15:05:07 -04:00
2022-07-01 13:18:08 +02:00
2022-07-28 23:22:44 -07:00
2022-06-25 21:27:56 -07:00
2022-05-27 16:43:33 -04:00
2022-07-26 11:25:49 -07:00
2022-08-18 19:54:51 +03:00
2022-05-06 22:40:57 -07:00
2022-08-10 22:28:05 -07:00
2022-06-17 21:04:21 +03:00
2022-08-16 20:35:03 +03:00
2022-05-11 18:41:23 -06:00
2022-07-26 11:25:49 -07:00
2022-08-10 19:54:45 +02:00
2022-05-07 00:02:15 +09:00
2022-05-27 16:43:33 -04:00
2022-06-11 23:49:33 +03:00
2022-07-01 13:18:08 +02:00
2022-08-16 20:35:03 +03:00
2022-05-27 16:43:33 -04:00
2022-05-27 16:43:33 -04:00
2022-05-13 16:43:59 -04:00
2022-08-05 15:41:03 +03:00
2022-07-27 18:07:53 +03:00
2022-08-15 11:25:51 +03:00
2022-06-03 20:21:20 +03:00
2022-05-11 15:43:18 -04:00
2022-07-24 11:51:59 +03:00
2022-07-06 20:12:00 -07:00
2022-07-09 15:19:03 +03:00
2022-08-03 21:19:41 +02:00
2022-07-11 16:40:05 +03:00
2022-08-05 15:47:52 +03:00
2022-08-05 15:39:53 +03:00
2022-04-29 22:51:53 -04:00
2022-07-25 22:04:30 +03:00
2022-08-17 23:13:58 +02:00
2022-08-17 16:36:02 -04:00
2022-07-25 18:12:32 +03:00
2022-07-22 19:25:38 +03:00
2022-07-25 22:04:30 +03:00
2022-05-26 21:58:19 -07:00
2022-07-01 13:18:08 +02:00
2022-06-03 20:21:20 +03:00
2022-07-25 22:04:30 +03:00
2022-07-22 18:58:43 +03:00
2022-08-07 16:07:08 -07:00
2022-05-11 15:43:18 -04:00
2022-08-06 14:42:05 -07:00
2022-07-25 15:51:22 +03:00
2022-07-04 16:53:41 -07:00
2022-05-27 16:43:33 -04:00
2022-06-17 21:04:21 +03:00
2022-06-11 11:02:56 +03:00
2022-06-11 23:49:33 +03:00
2022-07-10 23:47:56 +03:00