diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-10-27T13·00+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-10-27T13·00+0000 |
commit | 3277c9432ab718c8b80c54b228f8d5fbf94fb033 (patch) | |
tree | 6af9b959a1e5c961946fb3e855787f981d8a980c /src | |
parent | 463e2817c55fbd5b026d7dd630541b990b82418a (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.l | 2 |
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]; |