Multiline support minor tweaks

This commit is contained in:
Joshua Baker 2024-12-24 15:13:40 -06:00
parent 20ffb9d4f2
commit 8cade6ebc0
3 changed files with 17 additions and 18 deletions

View file

@ -447,8 +447,8 @@ namespace Hyprlang {
CConfigImpl* impl; CConfigImpl* impl;
enum eGetNextLineFailure { enum eGetNextLineFailure : uint8_t {
GETNEXTLINEFAILURE_EOF, GETNEXTLINEFAILURE_EOF = 0,
GETNEXTLINEFAILURE_BACKSLASH, GETNEXTLINEFAILURE_BACKSLASH,
}; };

View file

@ -25,6 +25,7 @@ extern "C" char** environ;
// defines // defines
inline constexpr const char* ANONYMOUS_KEY = "__hyprlang_internal_anonymous_key"; inline constexpr const char* ANONYMOUS_KEY = "__hyprlang_internal_anonymous_key";
inline constexpr const char* MULTILINE_SPACE_CHARSET = " \t";
// //
static size_t seekABIStructSize(const void* begin, size_t startOffset, size_t maxSize) { static size_t seekABIStructSize(const void* begin, size_t startOffset, size_t maxSize) {

View file

@ -5,8 +5,6 @@
#include <vector> #include <vector>
#include <memory> #include <memory>
static const char* MULTILINE_SPACE_CHARSET = " \t";
struct SHandler { struct SHandler {
std::string name = ""; std::string name = "";
Hyprlang::SHandlerOptions options; Hyprlang::SHandlerOptions options;