tools: strip multiline comments in light.css
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 20 Feb 2018 00:05:31 +0000 (01:05 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 5 Mar 2018 22:51:17 +0000 (23:51 +0100)
Outcommented code was added in commit v1.10-43-g61fa0d2d3c (2017-07-17)
[keys: even smaller keyboard style for mobile].

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