summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-06-02 10:59:08 -0700
committerCarl Worth <cworth@cworth.org>2010-06-02 10:59:08 -0700
commite4b2731a25c071407d90c6c593a226574e9c36f9 (patch)
treec09589f98e3094c7fb16519ec338ad8aea0ecdfc
parent4c22f4dba7a87de4736e01010e361b073a7501c8 (diff)
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.
-rw-r--r--glcpp-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcpp-lex.l b/glcpp-lex.l
index 7bc5fab76d..2aec46a2ed 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;
}