JSDOC/Lang.vala
[gnome.introspection-doc-generator] / JSDOC / Lang.vala
index 705deea..dcf4ec4 100644 (file)
@@ -83,9 +83,17 @@ namespace JSDOC {
         public bool isSpace (string str) {
             return this.whitespaceNames.get(str) != null;
         }
-    
+           public bool isSpaceC (char str) {
+                       var s = str.to_string();
+            return this.whitespaceNames.get(s) != null;
+        }
+        
         public bool isNewline (string str) {
             return this.newlineNames.get(str) != null;
+               }          
+        public bool isNewlineC (char str) {
+               var s =str.to_string();
+            return this.newlineNames.get(s) != null;
         }
            public bool isBoolean (string str) {
                        var ss = str.down();
@@ -219,7 +227,7 @@ namespace JSDOC {
                 this.puncNames.set(x[0],x[1]);
             }
         
-           ws = {
+           string[] wsp = {
                "LEFT_PAREN:RIGHT_PAREN",
                "RIGHT_PAREN:LEFT_PAREN",
                "LEFT_CURLY:RIGHT_CURLY",
@@ -227,8 +235,8 @@ namespace JSDOC {
                "LEFT_BRACE:RIGHT_BRACE",
                "RIGHT_BRACE:LEFT_BRACE"
            };
-           for(var i =0; i< ws.length;i++ ) {
-               var x = ws[i].split(":");
+           for(var i =0; i< wsp.length;i++ ) {
+               var x = wsp[i].split(":");
                this.matchingNames.set(x[0],x[1]);
            }