Joshua Baker
a11240549a
Add multiline tests
2024-12-16 13:37:09 -06:00
Joshua Baker
c5d9805379
Refactor to reduce duplicated code
2024-12-16 13:13:24 -06:00
Joshua Baker
2c5093321f
Add support for multi-line configs
2024-12-16 00:52:29 -06:00
f054f2e44d
version: bump to 0.5.3
2024-10-05 23:50:12 +01:00
Petr Kobalicek
dfeb5811dd
CMake: Use library aliases instead of library names ( #55 )
...
This changeset makes it possible to compile hyprlang with a custom
install prefix, which was not honored because of using "hyprutils" as
a raw dependency, which means that CMake was adding "-lhyprutils" flag
to the linker, but the linker didn't know the path in case a custom
install prefix was used to compile hyprutils.
2024-09-10 20:51:00 +01:00
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
16e5c9465f
core: don't populate linesContainingVar on dynamic requests
2024-08-20 19:16:02 +02:00
adbefbf496
flake.lock: update
2024-07-18 20:39:21 +03:00
651c8d02cc
CMake: fmt
2024-07-18 20:39:01 +03:00
c0704455ee
CMake, Nix: add VERSION file
2024-07-18 20:37:19 +03:00
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
db8c528aac
CI: fix arch
2024-07-06 12:17:06 +02:00
Vaxry
ec6938c662
core: Move to hyprutils for util functions ( #48 )
...
* move to hyprutils
* Nix: add hyprutils dep
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-06-08 23:24:12 +02:00
87d5d98410
cmake: remove -lc++abi
...
fixes #46
2024-05-23 16:16:22 +02:00
c7c2d29831
cmake: bump ver to 0.5.2
2024-05-23 12:00:09 +02:00
554c95a846
ci/cmake: fix clang build on arch
2024-05-23 11:56:15 +02:00
969cb076e5
dynamic: fix dynamic variables being blocked by flag keywords
...
fixes #45
2024-05-15 17:45:27 +01:00
Daniel Horton
073678282e
README: Fixed getconf command in build instructions ( #44 )
...
getconf NPROCESSORS_CONF isn't a valid command. The correct command is getconf _NPROCESSORS_CONF.
2024-05-14 16:13:58 +01:00
Oleksandr Kuksenko
19ec261528
README: update ( #42 )
2024-05-13 17:24:45 +03:00
78fcaa27ae
cmake: bump ver to 0.5.1
2024-04-14 20:00:46 +01:00
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
95471ec86f
core: allow specifying special keys with []
...
fixes #35
2024-03-28 16:44:44 +00:00
Sergey Fedorov
b3e430f81f
config.cpp: fix environ for Apple ( #34 )
2024-03-24 03:20:55 +00:00
a2f3942114
core: fix recursive variables in RHS of variable assignment
...
fixes #33
2024-03-20 18:48:46 +00:00
a685493fdb
cmake: bump sover to 2
2024-03-08 16:18:28 +00:00
84170ba0e5
cmake: bump ver to 0.5.0
2024-03-08 16:15:14 +00:00
bba5daeaf9
header: undef internal symbols if not internal
2024-03-08 16:15:01 +00:00
2e2a1992c8
core: make option structs forward-ABI compatible
2024-03-08 15:47:21 +00:00
9995f54edd
cmake: bump ver to 0.4.2
2024-03-07 18:14:09 +00:00
66c099e097
API: add pathIsStream to SConfigOptions
2024-03-07 18:14:02 +00:00
f1db1a7e1f
cmakelists: add O3 for release
2024-03-07 01:41:15 +00:00
221714841a
core: fix value name in configSetValueSafe
...
fixes #29
2024-03-05 14:16:22 +00:00
7edc9a664e
repo: add COPYRIGHT file
2024-03-04 22:28:50 +00:00
Mihai Fufezan
6cb791c18c
Nix: change license to lgpl3Only
2024-03-03 18:10:57 +02:00
Vaxry
3cc06e1687
Relicense hyprlang to lgpl 3 ( #27 )
...
---------
Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2024-03-03 00:10:20 +00:00
42c66f6b44
cmakelists: bump ver to 0.4.1
2024-02-28 01:02:18 +00:00
Mihai Fufezan
0fce791ba2
flake.lock: update nixpkgs
2024-02-24 17:14:14 +02:00
Jacob Birkett
f4466367ef
Nix: fix the overlay and re-export properly ( #26 )
...
* flake: made systems overrideable
* flake: do not use legacyPackages
* flake: add overlay named hyprlang
* flake: overlays: do not recurse with rec
* flake: overlays: only use drvs from final fixpoint
* flake: packages: correctly eval own overlay
2024-02-23 11:48:52 +02:00
bbf5c30b0c
core: throw custom value errors from handler
2024-02-19 14:22:12 +00:00
bf5c561905
core: fix dynamic variable updates with special categories
2024-02-19 14:19:01 +00:00
11d5ccda07
cmake: bump sover to 1
2024-02-17 23:34:20 +00:00
df4be17dea
cmake: bump ver to 0.4.0
2024-02-17 23:32:21 +00:00
378c3e273b
API: add anonymous special categories
2024-02-17 22:38:10 +00:00
65a7f870a6
internal: fix bugs on non-existent dynamic special requests
2024-02-17 19:11:22 +00:00
7b7e7cdd07
api: add listKeysForSpecialCategory
2024-02-17 19:01:35 +00:00
aeb3e012ad
cmake: bump ver to 0.3.2
2024-02-15 14:05:43 +00:00
b0e3a884f5
docs: document configvalue's special STRING storage
2024-02-15 03:02:52 +00:00