JSDOC/ScopeParser.vala
[gnome.introspection-doc-generator] / JSDOC / Lang.vala
index 1ec13d0..db32bc5 100644 (file)
@@ -65,7 +65,7 @@ namespace JSDOC {
             
         }
         public string punc (string ch) {
-            return this.puncNames[ch];
+            return this.puncNames.get(ch); // ?? does [xxx] work!?
         }
         
         public bool isNumber (string str) {
@@ -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();