Add support for binary integer literals. (#1819)
This commit is contained in:
parent
0fc179a4b5
commit
4ec908bc1e
|
@ -21,6 +21,7 @@ syntax.add {
|
||||||
{ pattern = { '"', '"', '\\' }, type = "string" },
|
{ pattern = { '"', '"', '\\' }, type = "string" },
|
||||||
{ pattern = { "'", "'", '\\' }, type = "string" },
|
{ pattern = { "'", "'", '\\' }, type = "string" },
|
||||||
{ regex = "0x[0-9a-fA-f]+"..isuf, type = "number" },
|
{ regex = "0x[0-9a-fA-f]+"..isuf, type = "number" },
|
||||||
|
{ regex = "0b[01]+"..isuf, type = "number" },
|
||||||
{ regex = "0()[0-7]+"..isuf, type = { "keyword", "number" } },
|
{ regex = "0()[0-7]+"..isuf, type = { "keyword", "number" } },
|
||||||
{ pattern = "%d+%.%d*[Ee]%d+"..fsuf, type = "number" },
|
{ pattern = "%d+%.%d*[Ee]%d+"..fsuf, type = "number" },
|
||||||
{ pattern = "%d+[Ee]%d+"..fsuf, type = "number" },
|
{ pattern = "%d+[Ee]%d+"..fsuf, type = "number" },
|
||||||
|
|
Loading…
Reference in New Issue