Skip to content

Commit

Permalink
Merge pull request #88876 from dalexeev/gds-fix-type-highlighting-aft…
Browse files Browse the repository at this point in the history
…er-whitespace

GDScript: Fix type highlighting after whitespace
  • Loading branch information
akien-mga committed Feb 27, 2024
2 parents 0df286f + a10241b commit 0499b57
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions modules/gdscript/editor/gdscript_highlighter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,14 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
}
}

in_function_declaration = false;
in_var_const_declaration = false;
in_signal_declaration = false;
in_function_name = false;
in_lambda = false;
in_member_variable = false;
if (!is_whitespace(str[j])) {
in_function_declaration = false;
in_var_const_declaration = false;
in_signal_declaration = false;
in_function_name = false;
in_lambda = false;
in_member_variable = false;
}
}

if (!in_raw_string && in_region == -1 && str[j] == 'r' && j < line_length - 1 && (str[j + 1] == '"' || str[j + 1] == '\'')) {
Expand Down

0 comments on commit 0499b57

Please sign in to comment.