Code region keywords must be followed by whitespace
This commit is contained in:
parent
76c8e76560
commit
ba3f4a4b24
2 changed files with 10 additions and 2 deletions
|
|
@ -1869,7 +1869,8 @@ bool CodeEdit::is_line_code_region_start(int p_line) const {
|
|||
if (is_in_string(p_line) != -1) {
|
||||
return false;
|
||||
}
|
||||
return get_line(p_line).strip_edges().begins_with(code_region_start_string);
|
||||
Vector<String> split = get_line(p_line).strip_edges().split_spaces();
|
||||
return split.size() > 0 && split[0] == code_region_start_string;
|
||||
}
|
||||
|
||||
bool CodeEdit::is_line_code_region_end(int p_line) const {
|
||||
|
|
@ -1880,7 +1881,8 @@ bool CodeEdit::is_line_code_region_end(int p_line) const {
|
|||
if (is_in_string(p_line) != -1) {
|
||||
return false;
|
||||
}
|
||||
return get_line(p_line).strip_edges().begins_with(code_region_end_string);
|
||||
Vector<String> split = get_line(p_line).strip_edges().split_spaces();
|
||||
return split.size() > 0 && split[0] == code_region_end_string;
|
||||
}
|
||||
|
||||
/* Delimiters */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue