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

index 4bda06d..c9c41f4 100644 (file)
@@ -446,14 +446,14 @@ namespace JSDOC {
          */
         public bool read_snquote  (TextStream stream, TokenArray tokens)
         {
-            if (stream.look() != "'") {
+            if (stream.look() != '\'') {
                 return false;
             }
             // find terminator
             var str = stream.next();
             
             while (!stream.look().eof) {
-                if (stream.look() == "\\") { // escape sequence
+                if (stream.look() == '\\') { // escape sequence
                     str += stream.next(2);
                     continue;
                 }