X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=tools%2Fjsmin.rb;h=83e2e40b8cf8a7216630f86aceedaf00aaba4e37;hp=05a5e7da16defb45140d39974e4c29157374ff0e;hb=a193d10c45d8226937c91a17dc588e4f6f1586fd;hpb=64ef87442b933d47f4dbc9dfec9a5a16e522c375 diff --git a/tools/jsmin.rb b/tools/jsmin.rb index 05a5e7d..83e2e40 100644 --- a/tools/jsmin.rb +++ b/tools/jsmin.rb @@ -67,9 +67,18 @@ end def mynext() c = get # saute les commentaires (également les lignes commencant pas ;;) - if (c == "/" or c == ";") + + if (c == ";" and peek == ";") + while(true) + c = get + if (c[0] <= "\n"[0]) + return c + end + end + end + if (c == "/") prochain = peek - if(prochain == "/" or prochain == ";") + if(prochain == "/") while(true) c = get if (c[0] <= "\n"[0])