From 571a3ce3c9b50dff2c84fe8021e2ff823a0bf08c Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Mon, 19 Mar 2012 09:17:28 +0100 Subject: Add comment documenting we're ignoring C++ style comments. https://bugzilla.gnome.org/show_bug.cgi?id=672254 --- giscanner/scannerlexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'giscanner') diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index 6a403984..98c4624e 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -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; } -- cgit v1.2.1