diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-17 08:54:32 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-17 08:54:32 +0000 |
| commit | 64717eba9de6e3dc60e47c322b5f1c1632ed3b21 (patch) | |
| tree | 6d6f17f9610104cc4a548c8b0de0a7cf32048730 /include | |
| parent | cf117c70277fab4d3de170b55fe8248d9cc36927 (diff) | |
add quotation mark support
allow arguments of a command to be quoted
Diffstat (limited to 'include')
| -rw-r--r-- | include/lexer/symbol_property.h | 3 | ||||
| -rw-r--r-- | include/util/string.h | 1 |
2 files changed, 1 insertions, 3 deletions
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<string, T_property> 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<std::string> &s, char **argv); void argv2string(std::vector<std::string> &s, const char * const * argv); std::string safe_str(const char *s, const char *fallback = ""); +void print_str_hex(const std::string &s); } |
