about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-10-27T13·00+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-10-27T13·00+0000
commit3277c9432ab718c8b80c54b228f8d5fbf94fb033 (patch)
tree6af9b959a1e5c961946fb3e855787f981d8a980c /src
parent463e2817c55fbd5b026d7dd630541b990b82418a (diff)
* Bug fix in parsing of /* ... */ comments; due to longest match
  regexp there could be only one such comment per file.

Diffstat (limited to 'src')
-rw-r--r--src/libexpr/lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index 78d08d072565..38d403c9fade 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -76,7 +76,7 @@ inherit     { return INHERIT; }
 
 [ \t\n]+    /* eat up whitespace */
 \#[^\n]*    /* single-line comments */
-\/\*(.|\n)*\*\/  /* long comments */
+\/\*([^*]|\*[^\/])*\*\/  /* long comments */
 
 .           return yytext[0];