Add support for binary integer literals. (#1819)

This commit is contained in:
fgelm01 2024-06-20 02:55:01 -04:00 committed by GitHub
parent 0fc179a4b5
commit 4ec908bc1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ syntax.add {
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },
{ regex = "0x[0-9a-fA-f]+"..isuf, type = "number" },
{ regex = "0b[01]+"..isuf, type = "number" },
{ regex = "0()[0-7]+"..isuf, type = { "keyword", "number" } },
{ pattern = "%d+%.%d*[Ee]%d+"..fsuf, type = "number" },
{ pattern = "%d+[Ee]%d+"..fsuf, type = "number" },