# File DelimScanner.rb, line 177
        def scanDelimited( delimiters="'\"`", prefix='\\s*', escape='\\' )
                delimiters    ||= "'\"`"
                prefix                ||= '\\s*'
                escape                ||= '\\'

                debugMsg( 1, "Scanning for delimited text: delim = (%s), prefix=(%s), escape=(%s)",
                                  delimiters, prefix, escape )
                self.matchError = nil

                # Try to match the prefix first to get the length
                unless (( prefixLength = self.match?(prefix.to_re) ))
                        self.matchError = "Failed to match prefix '%s' at offset %d" %
                                [ prefix, self.pointer ]
                        return nil
                end
                        
                # Now build a delimited pattern with the specified parameters.
                delimPattern = makeDelimPattern( delimiters, escape, prefix )
                debugMsg( 2, "Delimiter pattern is %s" % delimPattern.inspect )

                # Fail if no match
                unless (( matchedString = self.scan(delimPattern) ))
                        self.matchError = "No delimited string found."
                        return nil
                end

                return {
                        :match       => matchedString[prefixLength .. -1],
                        :prefix => matchedString[0..prefixLength-1],
                }
        end