From 64717eba9de6e3dc60e47c322b5f1c1632ed3b21 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 17 Sep 2026 08:54:32 +0000 Subject: add quotation mark support allow arguments of a command to be quoted --- include/lexer/symbol_property.h | 3 --- include/util/string.h | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/lexer/symbol_property.h b/include/lexer/symbol_property.h index 8b05c14..c933605 100644 --- a/include/lexer/symbol_property.h +++ b/include/lexer/symbol_property.h @@ -28,9 +28,6 @@ public: }; inline const unordered_map symbol_property = { - // non-operator - {"\'", {.enum_type = SINGLE_QUOTATION}}, - {"\"", {.enum_type = SINGLE_QUOTATION}}, // bracket {"(", {.continuable = false, .enum_type = LEFT_BRACKET}}, diff --git a/include/util/string.h b/include/util/string.h index 1c7f812..3f1cb0c 100644 --- a/include/util/string.h +++ b/include/util/string.h @@ -13,5 +13,6 @@ namespace ov4 void string2argv(const std::vector &s, char **argv); void argv2string(std::vector &s, const char * const * argv); std::string safe_str(const char *s, const char *fallback = ""); +void print_str_hex(const std::string &s); } -- cgit v1.3.1-4-g156e