Skip to content

Commit

Permalink
UPBGE: Add highlighting for trunc and round GLSL functions.
Browse files Browse the repository at this point in the history
Fix issue: #537.
  • Loading branch information
panzergame committed Jul 18, 2017
1 parent 5354244 commit 330e7a4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/blender/editors/space_text/text_format_glsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,17 +254,19 @@ static int txtfmt_glsl_find_reserved(const char *string) {
else if (STR_LITERAL_STARTSWITH(string, "mod", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "clamp", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "step", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "trunc", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "round", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "length", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "distance", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "normalize", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "faceforward", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "any", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "all", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "not", len)) i = len;
else if(STR_LITERAL_STARTSWITH(string, "texture3DLod", len)) i = len;
else if(STR_LITERAL_STARTSWITH(string, "texture2DLod", len)) i = len;
else if(STR_LITERAL_STARTSWITH(string, "texture1DLod", len)) i = len;
else if(STR_LITERAL_STARTSWITH(string, "textureCubeLod", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "texture3DLod", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "texture2DLod", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "texture1DLod", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "textureCubeLod", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "texture3D", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "texture2D", len)) i = len;
else if (STR_LITERAL_STARTSWITH(string, "texture1D", len)) i = len;
Expand Down

0 comments on commit 330e7a4

Please sign in to comment.