| 1950 | } |
| 1951 | |
| 1952 | bool CodeEdit::is_line_code_region_end(int p_line) const { |
| 1953 | ERR_FAIL_INDEX_V(p_line, get_line_count(), false); |
| 1954 | if (code_region_start_string.is_empty()) { |
| 1955 | return false; |
| 1956 | } |
| 1957 | if (is_in_string(p_line) != -1) { |
| 1958 | return false; |
| 1959 | } |
| 1960 | Vector<String> split = get_line(p_line).strip_edges().split_spaces(1); |
| 1961 | return split.size() > 0 && split[0] == code_region_end_string; |
| 1962 | } |
| 1963 | |
| 1964 | /* Delimiters */ |
| 1965 | // Strings |
no test coverage detected