diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-08-10 18:21:28 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 18:21:28 -0300 |
commit | 0fc1c4eda8acd97af36228ed1d947bb5cdb2634a (patch) | |
tree | 7fd1445ba97d500d4c39d57221be5e41b10de3f2 /scene/gui | |
parent | 52e6f1f25c86891381ca3ce9e03422db586ecd16 (diff) | |
parent | e6ad5e23b4be79965d6ce2afe18909c3becd2754 (diff) |
Merge pull request #20149 from Overblob/shader_float_typing
Shader language - Add optional float typings
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index c9dcf058aa..d3de68ee24 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -6410,7 +6410,7 @@ Map<int, TextEdit::HighlighterInfo> TextEdit::_get_line_syntax_highlighting(int } // check for dot or underscore or 'x' for hex notation in floating point number - if ((str[j] == '.' || str[j] == 'x' || str[j] == '_') && !in_word && prev_is_number && !is_number) { + if ((str[j] == '.' || str[j] == 'x' || str[j] == '_' || str[j] == 'f') && !in_word && prev_is_number && !is_number) { is_number = true; is_symbol = false; is_char = false; |