diff options
| author | fgelm01 <fgelm01@users.noreply.github.com> | 2024-06-20 02:55:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-20 14:55:01 +0800 |
| commit | 4ec908bc1e00a0d21437b61b0c94565a785f3b14 (patch) | |
| tree | 8142eb33413f9b042ac54e89d1a8cb37a808c6b0 /data | |
| parent | 0fc179a4b517ee1cc0895806168fdd10ce5b2677 (diff) | |
| download | lite-xl-4ec908bc1e00a0d21437b61b0c94565a785f3b14.tar.gz lite-xl-4ec908bc1e00a0d21437b61b0c94565a785f3b14.zip | |
Add support for binary integer literals. (#1819)
Diffstat (limited to 'data')
| -rw-r--r-- | data/plugins/language_cpp.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/plugins/language_cpp.lua b/data/plugins/language_cpp.lua index d2486736..4bd08477 100644 --- a/data/plugins/language_cpp.lua +++ b/data/plugins/language_cpp.lua @@ -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" }, |
