JSDOC/TokenReader.vala
[gnome.introspection-doc-generator] / JSDOC / TokenReader.vala
index 2244139..c87f4ac 100644 (file)
@@ -70,19 +70,19 @@ namespace JSDOC {
          */
         
         /** @cfg {Boolean} collapseWhite merge multiple whitespace/comments into a single token **/
-        public bool collapseWhite = false, // only reduces white space...
+        public bool collapseWhite = false; // only reduces white space...
         /** @cfg {Boolean} keepDocs keep JSDOC comments **/
-        public bool keepDocs = true,
+        public bool keepDocs = true;
         /** @cfg {Boolean} keepWhite keep White space **/
-        public bool keepWhite = false,
+        public bool keepWhite = false;
         /** @cfg {Boolean} keepComments  keep all comments **/
-        public bool keepComments = false,
+        public bool keepComments = false;
         /** @cfg {Boolean} sepIdents seperate identifiers (eg. a.b.c into ['a', '.', 'b', '.', 'c'] ) **/
-        public bool sepIdents = false,
+        public bool sepIdents = false;
         /** @cfg {String} filename name of file being parsed. **/
         public string filename = "";
         /** @config {Boolean} ignoreBadGrammer do not throw errors if we find stuff that might break compression **/
-        public bool ignoreBadGrammer = false,
+        public bool ignoreBadGrammer = false;
         
         
         int line = 0;
@@ -209,7 +209,7 @@ namespace JSDOC {
                     //Seed.print('(@' + n);
                     
                     var lt = this.lastSym(tokens, n);
-                    
+                    /*
                     //print(JSON.stringify(lt));
                     if (lt.type != "KEYW" || ["IF", 'WHILE'].indexOf(lt.name) < -1) {
                         if (!this.ignoreBadGrammer) {
@@ -219,7 +219,7 @@ namespace JSDOC {
                         }
                     }
                     
-                    
+                    */
                     
                 }
                 
@@ -257,7 +257,7 @@ namespace JSDOC {
             }
             
             
-            if (found === "") {
+            if (found == "") {
                 return false;
             }
             
@@ -293,7 +293,7 @@ namespace JSDOC {
                 found += stream.next();
             }
             
-            if (found === "") {
+            if (found == "") {
                 return false;
             }
             //print("WHITE = " + JSON.stringify(found));
@@ -313,6 +313,7 @@ namespace JSDOC {
             @returns {Boolean} Was the token found?
          */
         public bool read_newline  (TokenStream stream, TokenArray tokens)
+        {
             var found = "";
             var line = this.line;
             while (!stream.lookEOF() && Lang.isNewline(stream.look())) {
@@ -320,7 +321,7 @@ namespace JSDOC {
                 found += stream.next();
             }
             
-            if (found === "") {
+            if (found == "") {
                 return false;
             }