SUMMARY 0x (hex), 0o (octal), 0b (binary) integers in TOML are not highlighted. `nan` (not a number) and `inf` are also treated as errors, even though they are allowed. STEPS TO REPRODUCE Paste the following TOML file: binary_int = 0b11010110 octal_int = 0o755 hex_int = 0xdead_beef infinity = inf neg_infinity = -inf not_a_number = nan OBSERVED RESULT All of the values are underlined as errors in the input. EXPECTED RESULT They are parsed correctly. ADDITIONAL INFORMATION * TOML website (see more examples below): https://toml.io/en/ * TOML spec: https://toml.io/en/v1.0.0
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/394
Git commit 33358ad24ae67c49febcaa20b4558520f639f8c8 by Christoph Cullmann, on behalf of Jonathan Poelen. Committed on 27/11/2022 at 19:31. Pushed by cullmann into branch 'master'. TOML: add number prefix, inf, nan and more datetime format ; fix multi-strings closing - Remove Normal Text style (not used) - add 0x, 0o and 0o number prefix - add more datetime format - fix multi-string closing with """"", """", ''''' and '''' - several consecutive values are not considered as 2 values before: ```toml a = 001 ^ Int a = 12.12+123 ^ Float ^ Int a = "abc""abc" ^ String ``` after: ```toml a = 001 ^ Int ^ Key a = 12.12+123 ^ Float ^ Error ^ Key a = "abc""abc" ^ String ^ Key ``` Highlighting in Key visually gives a problem. M +126 -124 autotests/folding/highlight.toml.fold M +127 -125 autotests/html/highlight.toml.dark.html M +127 -125 autotests/html/highlight.toml.html M +126 -124 autotests/input/highlight.toml M +127 -125 autotests/reference/highlight.toml.ref M +82 -54 data/syntax/toml.xml https://invent.kde.org/frameworks/syntax-highlighting/commit/33358ad24ae67c49febcaa20b4558520f639f8c8