From: Carl Worth Date: Wed, 2 Jun 2010 17:59:08 +0000 (-0700) Subject: Make the multi-line comment regular expression a bit easier to read. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4b2731a25c071407d90c6c593a226574e9c36f9;p=mesa.git 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. --- diff --git a/glcpp-lex.l b/glcpp-lex.l index 7bc5fab76da..2aec46a2ed1 100644 --- a/glcpp-lex.l +++ b/glcpp-lex.l @@ -53,7 +53,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]? } /* Multi-line comments */ -[/][*]([^*]*[*]+[^*/])*[^*]*[*]+[/] { +"/*"([^*]*[*]+[^*/])*[^*]*[*]+"/" { if (yyextra->space_tokens) return SPACE; }