projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c22f4d
)
Make the multi-line comment regular expression a bit easier to read.
author
Carl Worth
<cworth@cworth.org>
Wed, 2 Jun 2010 17:59:08 +0000
(10:59 -0700)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/glcpp-lex.l
b/glcpp-lex.l
index 7bc5fab76da932dac4cebca2024204a7ad5078f0..2aec46a2ed1177ce19632d96b0c662ef88a2d2a4 100644
(file)
--- 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;
}