summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glcpp/glcpp-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l
index 0dea995..fabe756 100644
--- a/glcpp/glcpp-lex.l
+++ b/glcpp/glcpp-lex.l
@@ -60,7 +60,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
%%
/* Single-line comments */
-"//"[^\n]+\n {
+"//"[^\n]*\n {
yylineno++;
yycolumn = 0;
return NEWLINE;