Don't munch /* and */ comment start and end markers.
authorDieter Verfaillie <dieterv@optionexplicit.be>
Mon, 19 Mar 2012 08:23:22 +0000 (09:23 +0100)
committerJohan Dahlin <jdahlin@litl.com>
Thu, 5 Apr 2012 13:22:58 +0000 (10:22 -0300)
commit3288b284607e8fa7a53e061c6f10348bdb67e223
tree4d5f27405328e2285909ba805bca377eeae1019e
parent571a3ce3c9b50dff2c84fe8021e2ff823a0bf08c
Don't munch /* and */ comment start and end markers.

In Sandro Sigala's original c-c++-grammars code, this function
was known as "static void skip_comment(void)". It was built this
way instead of a lex pattern because it didn't need to save the
matched comment in the "yytext" buffer. This is still true as
we directly assign the matched comment to the scanner object.
So simply prepend and append the markers back where they belong.

https://bugzilla.gnome.org/show_bug.cgi?id=672254
giscanner/scannerlexer.l