rewrote quote-completion to avoid difficulties with the start and end of line
renamed from quote to scope
added support for '({ and [