aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-09 06:14:15 +0000
committer_ov4 <ov4@ov4.org>2026-10-09 06:14:15 +0000
commit091db10e0f5e8e95095f30cef34d51e23fc01abb (patch)
tree277fdaa2d2f4d9b12f08ce65714471e5d3db8460
parentd25efc7ce2419a2705dd0cc55442cb1c140fa868 (diff)
add SEMICOLON property
-rw-r--r--include/lang_analysis/symbol_property.h10
1 files 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<std::string, T_property> 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}},
};