| Summary: | [toml] Hex, octal, binary integers and nan, inf | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Timofey <me> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | walter.von.entferndt |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | All | ||
| Latest Commit: | https://invent.kde.org/frameworks/syntax-highlighting/commit/33358ad24ae67c49febcaa20b4558520f639f8c8 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Timofey
2022-11-23 16:41:10 UTC
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
|