Improve ruby parsing heuristics.

This commit is contained in:
2026-08-21 12:28:16 +01:00
parent 6ea03d651a
commit 739d2e450e
6 changed files with 82 additions and 84 deletions
+2 -2
View File
@@ -212,10 +212,10 @@ const static std::vector<std::string> base_keywords = {
"else",
"rescue",
"ensure",
"when",
};
const static std::vector<std::string> expecting_keywords = {
"when",
"elsif",
};
@@ -247,13 +247,13 @@ const static std::vector<std::string> operator_keywords = {
"redo",
"rescue",
"retry",
"super",
"self",
"nil",
"undef",
};
const static std::vector<std::string> expecting_operators = {
"super",
"and",
"return",
"not",