diff options
| author | Robert Hildebrandt <robert.3dgamedev@gmail.com> | 2023-09-07 01:54:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-07 01:54:52 +0200 |
| commit | 185b9cb08048728aae1ca83408006b0fa779e894 (patch) | |
| tree | 9971f0f034d496c43a2d90c3275fe2b8e2f8ab4f /data/plugins/language_cpp.lua | |
| parent | ac5c65c521775a6c54f60f957866ab1ae607faf2 (diff) | |
| download | lite-xl-185b9cb08048728aae1ca83408006b0fa779e894.tar.gz lite-xl-185b9cb08048728aae1ca83408006b0fa779e894.zip | |
Fixed C++14 digit separators (#1593)
Diffstat (limited to 'data/plugins/language_cpp.lua')
| -rw-r--r-- | data/plugins/language_cpp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/plugins/language_cpp.lua b/data/plugins/language_cpp.lua index a26ce868..70489713 100644 --- a/data/plugins/language_cpp.lua +++ b/data/plugins/language_cpp.lua @@ -14,9 +14,9 @@ syntax.add { { pattern = { "/%*", "%*/" }, type = "comment" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, - { pattern = "0x%x+", type = "number" }, + { pattern = "0x%x+[%x']*", type = "number" }, { pattern = "%d+[%d%.'eE]*f?", type = "number" }, - { pattern = "%.?%d+f?", type = "number" }, + { pattern = "%.?%d+[%d']*f?", type = "number" }, { pattern = "[%+%-=/%*%^%%<>!~|:&]", type = "operator" }, { pattern = "##", type = "operator" }, { pattern = "struct%s()[%a_][%w_]*", type = {"keyword", "keyword2"} }, |
