projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[euphorik.git]
/
tools
/
jsmin.rb
diff --git
a/tools/jsmin.rb
b/tools/jsmin.rb
index
05a5e7d
..
83e2e40
100644
(file)
--- 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 ;;)
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
prochain = peek
- if(prochain == "/"
or prochain == ";"
)
+ if(prochain == "/")
while(true)
c = get
if (c[0] <= "\n"[0])
while(true)
c = get
if (c[0] <= "\n"[0])