Commit Graph

25 Commits

Author SHA1 Message Date
Eduard Tykhoniuk 5b175c9704
config: Return an error on invalid hex values. (#54)
* config.cpp: fix parsing invalid hex
Instead of crashing on an invalid hex, return an error.

* config: return an error on an invalid hex value

* cleanup

* style: add references for catching exceptions

* style: ignore `std::out_of_range`
2024-09-02 00:45:17 +02:00
Eduard Tykhoniuk c12ab785ce
config: fix parsing invalid hex (#53)
Instead of crashing on an invalid hex, return an error.
2024-09-01 12:57:32 +02:00
Vaxry 5df0174fd0 core: properly handle unscoped keywords
for users: prefix your keyword with : to make it only global scope
2024-07-07 21:42:53 +02:00
Aurélien Brabant 095f54b910
core: handle scoped keywords if flags are not allowed (#49)
* core: handle scoped keywords if flags are not allowed

* chore: formatting

* test: add test cases for unintended categoryKeyword config options

* fix: use at() instead of []
2024-07-07 18:05:23 +02:00
Vaxry 969cb076e5 dynamic: fix dynamic variables being blocked by flag keywords
fixes #45
2024-05-15 17:45:27 +01:00
Vaxry 748fb531ca lib: add escaping errors
fixes #39
2024-04-14 16:29:27 +01:00
Micovec c140261214
lib: Allow comment escaping with multiple `#` if it's the first char (#38)
* parse line - ignore leading spaces, tabs

* removed unnecessary substr functions

* parse line - discard empty lines sooner
2024-03-29 00:24:51 +00:00
Vaxry 95471ec86f core: allow specifying special keys with []
fixes #35
2024-03-28 16:44:44 +00:00
Vaxry a2f3942114 core: fix recursive variables in RHS of variable assignment
fixes #33
2024-03-20 18:48:46 +00:00
Vaxry 221714841a core: fix value name in configSetValueSafe
fixes #29
2024-03-05 14:16:22 +00:00
Vaxry bf5c561905 core: fix dynamic variable updates with special categories 2024-02-19 14:19:01 +00:00
Vaxry 378c3e273b API: add anonymous special categories 2024-02-17 22:38:10 +00:00
Vaxry 7c5f672b2f internal: various stability improvements 2024-02-11 15:38:51 +00:00
Vaxry 70145fd8da core: add options for config parser 2023-12-30 13:32:29 +01:00
Vaxry a081d90b19 core: add custom data types 2023-12-29 19:35:23 +01:00
Vaxry 97bf10facd core: add missed config test 2023-12-29 16:02:43 +01:00
Vaxry 710bf1276a core: add parseFile 2023-12-29 13:43:36 +01:00
Vaxry cc05e782b3 core: add special categories 2023-12-29 13:26:21 +01:00
Vaxry 4d9da8db25 tests: adjust env check 2023-12-29 12:05:08 +01:00
Vaxry c5d9b60170 core: add env 2023-12-29 12:01:01 +01:00
Vaxry 158c66c5db core: add variables 2023-12-29 11:40:08 +01:00
Vaxry 090dcb22ea core: add dynamic handlers 2023-12-29 11:22:24 +01:00
Vaxry 19479c3216 core: add support for handlers 2023-12-28 23:25:57 +01:00
Vaxry 1c46cc857b add comma-separated rgb and rgba 2023-12-28 21:23:10 +01:00
Vaxry e15526ee91 initial commit
parses variables. Progress, I guess.
2023-12-28 20:38:01 +01:00