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:
parent
463e2817c5
commit
3277c9432a
4 changed files with 14 additions and 2 deletions
|
@ -76,7 +76,7 @@ inherit { return INHERIT; }
|
|||
|
||||
[ \t\n]+ /* eat up whitespace */
|
||||
\#[^\n]* /* single-line comments */
|
||||
\/\*(.|\n)*\*\/ /* long comments */
|
||||
\/\*([^*]|\*[^\/])*\*\/ /* long comments */
|
||||
|
||||
. return yytext[0];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue