         case (_) where scanner.scanString("self", intoString: nil):
             result = .SelfReference
 
-        case (_) where try scanner.scanSingleQuoteDelimittedString(&text):
+        case (_) where try scanSingleQuoteDelimittedString(scanner, string: &text):
             result = .Text(text)
 
         default:

    public let components: [Component]


    //MARK:- Instance life cycle

    public init(components: [Component]) {
        self.components = components


/**
JSONPath represents a path through a tree of JSON objects.

TODO: Write a grammer of a path

*/
public struct JSONPath {

