]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix a minor bug in the lexer
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 2 Nov 2012 17:30:20 +0000 (18:30 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 2 Nov 2012 17:30:20 +0000 (18:30 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index d5f22a3d5b6f1e967d706f8ab03a31f9931dc60b..02a7ff4f77ff6a33011b24a2c426efb835b80442 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -364,17 +364,11 @@ static int lex_skipwhite(lex_file *lex)
                     ch = lex_getch(lex);
                     if (ch == '*') {
                         ch = lex_getch(lex);
-                        if (ch == '/') {
-                            ch = lex_getch(lex);
+                        if (ch == '/')
                             break;
-                        }
                     }
                 }
-                if (ch == '/') /* allow *//* direct following comment */
-                {
-                    lex_ungetch(lex, ch);
-                    ch = ' '; /* cause TRUE in the isspace check */
-                }
+                ch = ' '; /* cause TRUE in the isspace check */
                 continue;
             }
             /* Otherwise roll back to the slash and break out of the loop */