tools: strip multiline comments in light.css
[sheet.git] / tools / stripcss
index 4b41f012ad1b6ed5906e7a8d559f205922d6316f..69156c4b2be2a29816c065d2c59874a1b103e097 100755 (executable)
@@ -4,6 +4,7 @@ use warnings;
 
 while (<>) {
        s!\s*/\*.*\*/\Z!!;  # comments
+       s!/\*.*!! .. s!.*?/\*!! and next;  # multiline comments
        s/^\s*//;   # indentation and empty lines
        s/\h+/ /g;  # alignment
        s/:\K\h//;  # separators