Make the multi-line comment regular expression a bit easier to read.

Use quoted strings for literal portions rather than a sequence of
single-character character classes.
This commit is contained in:
Carl Worth 2010-06-02 10:59:08 -07:00
parent 4c22f4dba7
commit e4b2731a25

View file

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