Add comment documenting we're ignoring C++ style comments.
authorDieter Verfaillie <dieterv@optionexplicit.be>
Mon, 19 Mar 2012 08:17:28 +0000 (09:17 +0100)
committerJohan Dahlin <jdahlin@litl.com>
Thu, 5 Apr 2012 13:22:57 +0000 (10:22 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=672254

giscanner/scannerlexer.l

index 6a4039840bc3878827a6f5c094f3cf57df70d499..98c4624e9f8a32f4237e084570377079a8548df8 100644 (file)
@@ -75,7 +75,7 @@ stringtext                            ([^\\\"])|(\\.)
 
 "/*"                                   { parse_comment(scanner); }
 "/*"[\t ]?<[\t ,=A-Za-z0-9_]+>[\t ]?"*/" { parse_trigraph(scanner); }
-"//".*                                 { }
+"//".*                                 { /* Ignore C++ style comments. */ }
 
 "#define "[a-zA-Z_][a-zA-Z_0-9]*"("    { yyless (yyleng - 1); return FUNCTION_MACRO; }
 "#define "[a-zA-Z_][a-zA-Z_0-9]*       { return OBJECT_MACRO; }