diff options
Diffstat (limited to 'source/blender/editors/space_text/text_format_osl.c')
-rw-r--r-- | source/blender/editors/space_text/text_format_osl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/editors/space_text/text_format_osl.c b/source/blender/editors/space_text/text_format_osl.c index 2da4488e901..0275a293e7a 100644 --- a/source/blender/editors/space_text/text_format_osl.c +++ b/source/blender/editors/space_text/text_format_osl.c @@ -64,8 +64,8 @@ static int txtfmt_osl_find_builtinfunc(const char *string) } else if (STR_LITERAL_STARTSWITH(string, "vector", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "void", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "while", len)) { i = len; - } else { i = 0; -} + } else { i = 0; + } /* clang-format on */ @@ -122,8 +122,8 @@ static int txtfmt_osl_find_reserved(const char *string) } else if (STR_LITERAL_STARTSWITH(string, "varying", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "virtual", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "volatile", len)) { i = len; - } else { i = 0; -} + } else { i = 0; + } /* clang-format on */ @@ -153,8 +153,8 @@ static int txtfmt_osl_find_specialvar(const char *string) } else if (STR_LITERAL_STARTSWITH(string, "surface", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "volume", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "displacement", len)) { i = len; - } else { i = 0; -} + } else { i = 0; + } /* clang-format on */ @@ -193,8 +193,8 @@ static char txtfmt_osl_format_identifier(const char *str) } else if ((txtfmt_osl_find_builtinfunc(str)) != -1) { fmt = FMT_TYPE_KEYWORD; } else if ((txtfmt_osl_find_reserved(str)) != -1) { fmt = FMT_TYPE_RESERVED; } else if ((txtfmt_osl_find_preprocessor(str)) != -1) { fmt = FMT_TYPE_DIRECTIVE; - } else { fmt = FMT_TYPE_DEFAULT; -} + } else { fmt = FMT_TYPE_DEFAULT; + } /* clang-format on */ @@ -327,7 +327,7 @@ static void txtfmt_osl_format_line(SpaceText *st, TextLine *line, const bool do_ } else if ((i = txtfmt_osl_find_builtinfunc(str)) != -1) { prev = FMT_TYPE_KEYWORD; } else if ((i = txtfmt_osl_find_reserved(str)) != -1) { prev = FMT_TYPE_RESERVED; } else if ((i = txtfmt_osl_find_preprocessor(str)) != -1) { prev = FMT_TYPE_DIRECTIVE; -} + } /* clang-format on */ |