diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-24 01:04:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 01:04:57 +0200 |
commit | 3811fb919e2053ec47510b5e04649c8f818ebe12 (patch) | |
tree | 034adb2bf6a3177dbc3fa36b19f0cbd2ef7f8750 /modules/gdscript/editor/gdscript_highlighter.cpp | |
parent | 819ef12d68548c8b50c99d2ce62413bafaa00d9c (diff) | |
parent | a0f54cb95e3a0250df8ed6e6a54720c487034d97 (diff) |
Merge pull request #40598 from vnen/gdscript-2.0
GDScript 2.0 (again)
Diffstat (limited to 'modules/gdscript/editor/gdscript_highlighter.cpp')
-rw-r--r-- | modules/gdscript/editor/gdscript_highlighter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index 43d0116125..aba3e07134 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -288,7 +288,7 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting(int p_line) if (str[k] == '(') { in_function_name = true; - } else if (previous_text == GDScriptTokenizer::get_token_name(GDScriptTokenizer::TK_PR_VAR)) { + } else if (previous_text == GDScriptTokenizer::get_token_name(GDScriptTokenizer::Token::VAR)) { in_variable_declaration = true; } } @@ -357,7 +357,7 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting(int p_line) } else if (in_function_name) { next_type = FUNCTION; - if (previous_text == GDScriptTokenizer::get_token_name(GDScriptTokenizer::TK_PR_FUNCTION)) { + if (previous_text == GDScriptTokenizer::get_token_name(GDScriptTokenizer::Token::FUNC)) { color = function_definition_color; } else { color = function_color; |