pack.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 05:52:30 +0000 (13:52 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 05:52:30 +0000 (13:52 +0800)
pack.js

diff --git a/pack.js b/pack.js
index 1029fa4..3dbf8d7 100755 (executable)
--- a/pack.js
+++ b/pack.js
@@ -16,7 +16,7 @@ File = imports.File.File;
 function pack(str)
 {
     
-    var tr = new  TokenReader();
+    var tr = new  TokenReader(  { keepDocs :true, keepWhite : true,  keepComments : true });
     var toks = tr.tokenize(new TextStream(str),false); // dont merge xxx + . + yyyy etc.
     var sp = new  ScopeParser(new   TokenStream(toks));
     sp.buildSymbolTree();