[#12678] Improve hex and binary literal parses
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
This PR requires https://github.com/Anuken/Arc/pull/217 (so it won't compile now).
It allows all possible long values to be parsed in binary or hex format (0b/0x) - it handles zeroes separately and uses it to indicate an invalid value later on - and also refuses invalid numbers which currently do parse (such as 0x+abcd or 0b-0101). A small optimization to refuse parsing strings starting with @ (logic built-ins) was also added.
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
由 MDT GitHub 同步机器人自动同步。