JSDOC/TokenStream.vala
[gnome.introspection-doc-generator] / JSDOC / TokenStream.vala
index d3cd253..e26c9b2 100644 (file)
@@ -268,10 +268,11 @@ namespace JSDOC {
                        depth = 1;
                    }
                    if (stop.length < 1) {
-                               stop = Lang.matching(start);
+                               var ns = Lang.matching(start);
+                               stop = ns;
                        }
                    
-                   while ((token = this.tokens[cursor])) {
+                   while (null !== (token = this.tokens[cursor])) {
                        if (token.is(start)) {
                            depth++;
                        }