JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 Oct 2015 09:09:31 +0000 (17:09 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 Oct 2015 09:09:31 +0000 (17:09 +0800)
JSDOC/TokenReader.vala

index 176ba39..ce9544d 100644 (file)
@@ -542,10 +542,10 @@ namespace JSDOC {
                         regex += stream.next(2);
                         continue;
                     }
-                    if (stream.look() == "'/') {
+                    if (stream.look() == '/') {
                         regex += stream.next();
                         
-                        while (GLib.Regex.match_simple("[gmi]", stream.look())) {
+                        while (GLib.Regex.match_simple("[gmi]", (string)stream.look())) {
                             regex += stream.next();
                         }