Fixed parser for quoted logical operators