@export<EOL>def get_editor_query(sql):
sql = sql.strip()<EOL>pattern = re.compile('<STR_LIT>')<EOL>while pattern.search(sql):<EOL><INDENT>sql = pattern.sub('<STR_LIT>', sql)<EOL><DEDENT>return sql<EOL>
Get the query part of an editor command.