From 19632eaf5006ed147e0922523da268f62b528033 Mon Sep 17 00:00:00 2001 From: ajreckof <66184050+ajreckof@users.noreply.github.com> Date: Mon, 4 Sep 2023 17:08:14 +0200 Subject: Change precedence in rules to make location after proper casing. --- core/object/script_language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/object/script_language.cpp') diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index a8b0e426ae..0de03662a0 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -482,7 +482,6 @@ TypedArray ScriptLanguage::CodeCompletionOption::get_option_characteristics } charac.push_back(matches.size()); charac.push_back((matches[0].first == 0) ? 0 : 1); - charac.push_back(location); const char32_t *target_char = &p_base[0]; int bad_case = 0; for (const Pair &match_segment : matches) { @@ -494,6 +493,7 @@ TypedArray ScriptLanguage::CodeCompletionOption::get_option_characteristics } } charac.push_back(bad_case); + charac.push_back(location); charac.push_back(matches[0].first); last_matches = matches; return charac; -- cgit v1.2.3