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;
enum eGetNextLineFailure {
GETNEXTLINEFAILURE_EOF,
enum eGetNextLineFailure : uint8_t {
GETNEXTLINEFAILURE_EOF = 0,
GETNEXTLINEFAILURE_BACKSLASH,
};

View file

@ -25,6 +25,7 @@ extern "C" char** environ;
// defines
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) {

View file

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