JSDOC/TokenReader.js
[gnome.introspection-doc-generator] / JSDOC / Lang.vala
index 28f5867..4eb8d4b 100644 (file)
@@ -57,8 +57,21 @@ namespace JSDOC {
             return this.keywordNames.get("="+word);
         }
         
-        public string matching(string name) {
-            return this.matchingNames.get(name);
+        public string? matching(string name) {
+        
+            
+            switch(name) {
+                               case   "LEFT_PAREN": return "RIGHT_PAREN";
+               case "RIGHT_PAREN": return "LEFT_PAREN";
+               case "LEFT_CURLY": return "RIGHT_CURLY";
+               case "RIGHT_CURLY": return "LEFT_CURLY";
+               case "LEFT_BRACE": return "RIGHT_BRACE";
+               case "RIGHT_BRACE": return "LEFT_BRACE";
+               default:
+                               return null;
+           };
+        
+            //return this.matchingNames.get(name);
         }
         
         public bool isKeyword(string word) {