summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2012-03-19 09:17:28 +0100
committerJohan Dahlin <jdahlin@litl.com>2012-04-05 10:22:57 -0300
commit571a3ce3c9b50dff2c84fe8021e2ff823a0bf08c (patch)
tree8a5b337cfdd1347e4b3d120ac3eaeb5159ae5919
parent041aeabea9d84376230354938d1205616e4a560a (diff)
downloadgobject-introspection-571a3ce3c9b50dff2c84fe8021e2ff823a0bf08c.tar.gz
Add comment documenting we're ignoring C++ style comments.
https://bugzilla.gnome.org/show_bug.cgi?id=672254
-rw-r--r--giscanner/scannerlexer.l2
1 files changed, 1 insertions, 1 deletions
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; }