JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:38:06 +0000 (16:38 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:38:06 +0000 (16:38 +0800)
JSDOC/TokenStream.vala

index 3ca0e6a..903841c 100644 (file)
@@ -278,7 +278,7 @@ namespace JSDOC {
                            depth++;
                        }
                        
-                       if (token.is(stop) && cursor) {
+                       if (token.is(stop) && cursor != 0) {
                            depth--;
                            if (depth == 0) return this.tokens[cursor];
                        }