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

index 077d27f..176ba39 100644 (file)
@@ -538,11 +538,11 @@ namespace JSDOC {
                 var regex = stream.next();
                 
                 while (!stream.lookEOF()) {
-                    if (stream.look() == "\\") { // escape sequence
+                    if (stream.look() == '\\') { // escape sequence
                         regex += stream.next(2);
                         continue;
                     }
-                    if (stream.look() == "/") {
+                    if (stream.look() == "'/') {
                         regex += stream.next();
                         
                         while (GLib.Regex.match_simple("[gmi]", stream.look())) {