Automate generation of the char_range.inc file

Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>
This commit is contained in:
Jakub Marcowski
2025-01-21 16:10:17 +01:00
parent 1b7b009674
commit 10485764a7
2 changed files with 141 additions and 1 deletions

View File

@@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
// This file was generated using the `misc/scripts/char_range_fetch.py` script.
#ifndef CHAR_RANGE_INC
#define CHAR_RANGE_INC
@@ -43,7 +45,7 @@ struct CharRange {
constexpr inline CharRange xid_start[] = {
{ 0x41, 0x5a },
{ 0x5f, 0x5f }, // Underscore technically isn't in XID_Start, but for our purposes it's included.
{ 0x5f, 0x5f },
{ 0x61, 0x7a },
{ 0xaa, 0xaa },
{ 0xb5, 0xb5 },