From 091db10e0f5e8e95095f30cef34d51e23fc01abb Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 9 Oct 2026 06:14:15 +0000 Subject: add SEMICOLON property --- include/lang_analysis/symbol_property.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/lang_analysis/symbol_property.h b/include/lang_analysis/symbol_property.h index d0acc7a..8266408 100644 --- a/include/lang_analysis/symbol_property.h +++ b/include/lang_analysis/symbol_property.h @@ -32,10 +32,12 @@ inline const std::unordered_map symbol_property = { {")", {.continuable = false, .enum_type = RIGHT_BRACKET}}, // operator - {"&", {.continuable = true, .pivot_priority = 2000, .left = child_existence_type::EXIST, .right = child_existence_type::NOT_EXIST, .enum_type = ASYNC}}, - {"|", {.continuable = true, .pivot_priority = 100, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = PIPE}}, - {"&&", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_AND}}, - {"||", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_OR}}, + {"&", {.continuable = true, .pivot_priority = 2000, .left = child_existence_type::EXIST, .right = child_existence_type::NOT_EXIST, .enum_type = ASYNC}}, + {"|", {.continuable = true, .pivot_priority = 100, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = PIPE}}, + {"&&", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_AND}}, + {"||", {.continuable = true, .pivot_priority = 1000, .left = child_existence_type::EXIST, .right = child_existence_type::EXIST, .enum_type = LOGIC_OR}}, + + {";", {.continuable = false, .pivot_priority = 2000, .left = child_existence_type::EXIST, .right = child_existence_type::OPTIONAL, .enum_type = SEMICOLON}}, }; -- cgit v1.3.1-4-g156e