Make the multi-line comment regular expression a bit easier to read.
authorCarl Worth <cworth@cworth.org>
Wed, 2 Jun 2010 17:59:08 +0000 (10:59 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 2 Jun 2010 17:59:08 +0000 (10:59 -0700)
Use quoted strings for literal portions rather than a sequence of
single-character character classes.

glcpp-lex.l

index 7bc5fab76da932dac4cebca2024204a7ad5078f0..2aec46a2ed1177ce19632d96b0c662ef88a2d2a4 100644 (file)
@@ -53,7 +53,7 @@ HEXADECIMAL_INTEGER   0[xX][0-9a-fA-F]+[uU]?
 }
 
        /* Multi-line comments */
-[/][*]([^*]*[*]+[^*/])*[^*]*[*]+[/] {
+"/*"([^*]*[*]+[^*/])*[^*]*[*]+"/" {
        if (yyextra->space_tokens)
                return SPACE;
 }