1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

* Bug fix in parsing of /* ... */ comments; due to longest match

regexp there could be only one such comment per file.
This commit is contained in:
Eelco Dolstra 2004-10-27 13:00:31 +00:00
parent 463e2817c5
commit 3277c9432a
4 changed files with 14 additions and 2 deletions

View file

@ -76,7 +76,7 @@ inherit { return INHERIT; }
[ \t\n]+ /* eat up whitespace */
\#[^\n]* /* single-line comments */
\/\*(.|\n)*\*\/ /* long comments */
\/\*([^*]|\*[^\/])*\*\/ /* long comments */
. return yytext[0];