Module Expr Str Import alias Import alias Import alias Import alias Assign NameStore CompareGtE Call NameLoad Call AttributeLoad NameLoad attr Num Global identifier Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults Call NameLoad SubscriptLoad NameLoad Index Num keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If SubscriptLoad NameLoad Index Str body Print BinOpMod Str Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str body Return Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign NameStore Num Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Str Return Expr Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Return Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameStore NameLoad While BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub NameLoad Num NameLoad CompareNotEq NameLoad Num body AugAssignSub NameStore Num While BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad CompareNotEq NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore TupleLoad NameLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Str Return Assign NameStore SubscriptLoad NameLoad Index Num For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Num Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Num Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Num Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Num Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad Expr Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad If CompareLt Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Expr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub NameLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Num Assign NameStore BinOpAdd NameLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListComp TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareIsNot SubscriptLoad NameLoad Index Num NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Str Return TupleLoad NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad SubscriptLoad NameLoad Index Num attr Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad BinOpMod Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad While CompareNotEq NameLoad Call NameLoad NameLoad body Continue Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Return Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If UnaryOpNot NameLoad body Expr Call NameLoad
N/A N/A ChangeQuotes plugin module. N/A sublime N/A sublime_plugin N/A re N/A itertools N/A ST3 N/A N/A int N/A N/A sublime version 3000 N/A config N/A config None reorder_list_settings N/A N/A list_settings N/A N/A N/A Reorder the quotes lists and the prefixes list.

    The reordering of the quotes lists is as follows:
      - Each quote list's elements (quotes) are ordered by len(quote)
      - The quote lists's elements (quote_lists) are ordered len(quote_list[0])

    The reordering of the prefix list is as follows:
      - The prefix list's elements (prefixes) are ordered by len(prefix)

    The order is important, because a ''' must take precedence over '
    (otherwise '''foo bar''' will get replaced by ''"foo bar"'')

    Returns the sorted settings.

     N/A N/A scope conf N/A N/A list_settings items N/A N/A prefixes N/A N/A conf get prefixes N/A N/A quote_lists N/A N/A conf get quotes N/A N/A ql quote_lists N/A N/A N/A N/A ql sort key len reverse True N/A N/A N/A quote_lists sort key N/A N/A N/A x N/A N/A len N/A x N/A 0 reverse True N/A N/A N/A prefixes sort key len reverse True N/A N/A list_settings N/A scope N/A prefixes quotes prefixes quote_lists N/A list_settings N/A build_config N/A N/A settings N/A N/A N/A Build a dict from the sublime settings.

    This is required since the original settings need to be reordered
    before they are used, which can't happen directly
    (sublime's settings are immutable)

    Returns a dict representing the reordered settings.

     N/A config N/A config N/A N/A N/A config N/A debug N/A N/A settings get debug N/A N/A config N/A lists N/A reorder_list_settings N/A N/A settings get lists N/A load_config N/A N/A N/A N/A N/A Load the plugin settings. N/A settings N/A N/A sublime load_settings ChangeQuotes.sublime-settings N/A N/A build_config settings N/A plugin_loaded N/A N/A N/A N/A N/A Invoke load_config() and attach a settings on_change hook.

    Care must be taken to attach the hook just once, hence
    plugin_loaded and load_config are separated.

     N/A settings N/A N/A sublime load_settings ChangeQuotes.sublime-settings N/A N/A N/A settings add_on_change lists load_config N/A N/A build_config settings N/A debug N/A N/A msg N/A N/A N/A Print the given message if the `debug` setting is true. N/A N/A config N/A debug N/A N/A N/A [ChangeQuotes] %s N/A str msg N/A ChangeQuotesCommand N/A N/A sublime_plugin TextCommand N/A N/A Main plugin class. run N/A N/A self edit N/A kwargs N/A N/A Main plugin function. N/A N/A self edit edit N/A region N/A N/A N/A self view sel N/A N/A N/A N/A self run_each edit region kwargs N/A run_each N/A N/A self edit sel_region N/A N/A N/A Run the command for each selection region. N/A cursor N/A N/A sel_region begin N/A N/A N/A self apply_scope cursor N/A region N/A N/A self expand_region sel_region N/A N/A region N/A N/A N/A text N/A N/A N/A self view substr region N/A regex_tuples N/A N/A self build_regex_tuples N/A N/A match_data quote_list N/A N/A self find_best_match text regex_tuples N/A N/A match_data N/A N/A N/A quote N/A N/A match_data group 1 N/A replacement N/A N/A self replacement quote quote_list N/A regions N/A N/A self build_regions region text match_data quote replacement N/A N/A N/A N/A regions N/A start contains N/A regions N/A end N/A N/A N/A N/A N/A self replace_quotes N/A regions N/A end replacement N/A N/A N/A self escape_unescape N/A regions N/A inner quote replacement N/A N/A N/A self replace_quotes N/A regions N/A start replacement N/A apply_scope N/A N/A self cursor N/A N/A N/A Choose the best-matching quote and prefix lists.

        Start by choosing the default ones.
        Then, for syntax-specific lists, evaluate the syntax
        match score and possibly choose them instead.

        Chosen values are stored in self.quotes and self.prefixes.

        No explicit return value.

         N/A N/A self quote_lists N/A N/A N/A config N/A lists N/A default N/A quotes N/A N/A self prefix_list N/A N/A N/A config N/A lists N/A default N/A prefixes N/A best 0 N/A N/A debug N/A Working with: %s config N/A N/A debug N/A Scope: %s N/A N/A N/A self view scope_name cursor N/A N/A scope conf N/A N/A N/A config N/A lists items N/A N/A score N/A N/A N/A self view score_selector cursor scope N/A N/A score best N/A N/A N/A self quote_lists N/A conf N/A quotes N/A N/A self prefix_list N/A conf N/A prefixes N/A N/A debug N/A Quotes: %s, Prefixes: %s N/A N/A self quote_lists N/A self prefix_list N/A expand_region N/A N/A self sel_region N/A N/A N/A Expand working region to the quote extents.

        Use the cursor position as a starting reference point.
        (cursor is always at `sel_region.b`)

        Two different approaches are used, based on the context:
          1/ string context
          2/ non-string context (e.g. comment)

        Finally, if the expanded region does not entirely contain the
        user selection region (e.g. the selection spans across both
        sides of a string boundary), nothing is returned.

        Returned value is a sublime.Region object.

         N/A ref N/A sel_region b N/A N/A N/A N/A self view score_selector ref string,meta.string N/A N/A scopes N/A N/A N/A N/A N/A self view scope_name ref split N/A N/A debug N/A Scopes: %s N/A str scopes N/A regex N/A N/A re compile ^(?:meta.)?string N/A scope N/A next N/A x N/A x scopes N/A N/A regex match x N/A N/A debug N/A Chosen scope: %s scope N/A region N/A N/A self expand_to_scope ref scope N/A N/A region N/A N/A self expand_to_match ref N/A N/A region N/A N/A N/A debug No region found. N/A N/A N/A debug N/A Operation region: %s region N/A N/A N/A N/A region contains sel_region N/A N/A N/A debug Selection region exceeds operation region, doing nothing N/A N/A region N/A expand_to_scope N/A N/A self ref scope N/A N/A N/A Expand `ref` to a region within the `scope` extents.

        Returned value is a sublime.Region object.

         N/A a b ref N/A N/A N/A N/A N/A self view score_selector N/A a 1 scope N/A a 0 N/A N/A a 1 N/A N/A N/A N/A N/A self view score_selector b scope N/A b N/A N/A N/A self view size N/A N/A b 1 N/A region N/A N/A sublime Region a b N/A region N/A expand_to_match N/A N/A self ref N/A N/A N/A Expand `ref` to the innermost region, surrounded by quotes.

        Expansion is done by searching for any of the chars in each
        list in self.quote_lists. Search is both to the left and right,
        up to the current scope extents. Then, the constructed regions
        are compared and the one closest to `ref` boundary is returned.

        Escaped quotes are not considered a region boundary by checking if
        an odd amount of backslashes precede the quote. It is not a perfect
        solution, but given the unknown semantics of the current region,
        it should suffice.

        Returned value is a sublime.Region object.

         N/A scope N/A N/A N/A self view extract_scope ref N/A all_quotes N/A item N/A qlist N/A self quote_lists N/A item qlist N/A region_left N/A N/A sublime Region N/A N/A scope begin ref N/A substr_left N/A N/A N/A self view substr region_left N/A region_right N/A N/A sublime Region ref N/A N/A scope end N/A substr_right N/A N/A N/A self view substr region_right N/A matches N/A N/A q all_quotes N/A N/A regex_right N/A N/A re compile N/A (?<!\\)(?:\\\\)*(%s) q N/A regex_left N/A N/A re compile N/A (%s)(?:\\\\)*(?!\\) q N/A N/A debug N/A [left] Trying %s with %s N/A q N/A regex_left pattern N/A N/A debug N/A [right] Trying %s with %s N/A q N/A regex_right pattern N/A match_left N/A N/A regex_left search N/A substr_left N/A -1 N/A match_right N/A N/A regex_right search substr_right N/A N/A match_left match_right N/A N/A elem N/A q N/A match_left match_right N/A N/A N/A matches append elem N/A N/A matches N/A N/A N/A debug No matches N/A N/A best N/A matches N/A 0 N/A m N/A matches N/A 1 N/A N/A m_left N/A N/A N/A N/A m N/A 1 N/A 0 start 1 N/A m_right N/A N/A N/A N/A m N/A 1 N/A 1 start 1 N/A best_left N/A N/A N/A N/A best N/A 1 N/A 0 start 1 N/A best_right N/A N/A N/A N/A best N/A 1 N/A 1 start 1 N/A N/A debug N/A Match: %s at (%s, %s) N/A N/A m N/A 0 m_left m_right N/A N/A debug N/A Against: %s at (%s, %s) N/A N/A best N/A 0 best_left best_right N/A N/A N/A min m_left m_right N/A min best_left best_right N/A N/A best m N/A N/A debug N/A Best match: %s N/A best N/A 0 N/A a N/A ref N/A N/A N/A N/A best N/A 1 N/A 0 end 1 N/A b N/A ref N/A N/A N/A N/A best N/A 1 N/A 1 end 1 N/A region N/A N/A sublime Region a b N/A region N/A build_regex_tuples N/A N/A self N/A N/A N/A For each list in self.quote_lists, return a tuple (regex, list).

        Returned value is a list of (_sre.SRE_Pattern, quotes_list) tuples.

         N/A regexes N/A N/A N/A N/A self build_regex ql ql N/A ql N/A self quote_lists N/A N/A debug N/A REGEXES: %s regexes N/A regexes N/A build_regex N/A N/A self quotes_list N/A N/A N/A Build a regex matching any quote in `quotes_list`.

        The regex has only one match group -- the matched quote.

        Returned value is a _sre.SRE_Pattern object.

         N/A wrapped_quotes N/A N/A (?:%s) q N/A q quotes_list N/A joined_quotes N/A N/A | join wrapped_quotes N/A wrapped_prefixes N/A N/A (?:%s) p N/A p N/A self prefix_list N/A joined_prefixes N/A N/A | join wrapped_prefixes N/A pattern N/A (%s) joined_quotes N/A N/A self prefix_list N/A N/A pattern N/A ^(?:%s)?(%s) N/A joined_prefixes joined_quotes N/A N/A pattern N/A ^(%s) joined_quotes N/A N/A debug N/A Pattern: %s pattern N/A regex N/A N/A re compile pattern N/A regex N/A find_best_match N/A N/A self text regex_tuples N/A N/A N/A Find the best match in `text` amongst the `regex_tuples` list.

        `regex_tuples` is a list of (_sre.SRE_Pattern, quotes_list) tuples.

        The "best match" is actually the "closest match" -- i.e. the
        match result with the lowest match-index in `text`.

        The returned value is a (_sre.SRE_Match, quotes_list) tuple.

         N/A matches N/A N/A N/A N/A N/A r N/A 0 match text N/A r N/A 1 N/A r regex_tuples N/A N/A debug N/A Text: %s text N/A N/A debug N/A Matches: %s matches N/A matches N/A m N/A m matches N/A N/A m N/A 0 None N/A N/A matches N/A N/A N/A debug No matches. N/A N/A None None N/A starts N/A N/A N/A N/A m N/A 0 start 1 N/A m matches N/A best_index N/A N/A starts index N/A min starts N/A best N/A matches N/A best_index N/A N/A debug N/A Best match: %s N/A str best N/A best N/A replacement N/A N/A self quote quote_list N/A N/A N/A Find the replacement of `quote` amongst `quote_list`.

        The replacement is just the "next" quote in `quote_list`.

        Returned value is a string.

         N/A cycle N/A N/A itertools cycle quote_list N/A N/A quote N/A next cycle N/A N/A N/A N/A next cycle N/A build_regions N/A N/A self region text match_data quote replacement N/A N/A N/A Divide `region` into 3 sub-regions: start, end and inner.

        The start region contains only the quote chars at the left border.
        The end region contains only the quote chars at the right border.
        The inner region contains the text inbetween.

        Returned value is a dict:
        {
            "start": subime.Region,
            "end": sublime.Region,
            "inner": sublime.Region
        }

         N/A offset N/A N/A region begin N/A N/A start_l start_r N/A N/A match_data span 1 N/A start_region N/A N/A sublime Region N/A start_l offset N/A start_r offset N/A end_l N/A N/A text rfind quote N/A end_r N/A end_l N/A len quote N/A end_region N/A N/A sublime Region N/A end_l offset N/A end_r offset N/A inner_region N/A N/A sublime Region N/A N/A start_region end N/A N/A end_region begin N/A N/A debug N/A Start region: %s start_region N/A N/A debug N/A End region: %s end_region N/A N/A debug N/A Inner region: %s inner_region N/A N/A start end inner start_region end_region inner_region N/A replace_quotes N/A N/A self region replacement N/A N/A N/A Replace the contents of a `region` with `replacement`.

        No explicit return value.

         N/A N/A debug N/A Replace: %s with %s N/A N/A N/A N/A self view substr region replacement N/A N/A N/A N/A self view replace N/A self edit region replacement N/A escape_unescape N/A N/A self region quote replacement N/A N/A N/A In `region`, escape `replacement` and unescape `quote`.

        The escaped values are constructed from `replacement` by prepending
        each of its characters with a backslash. E.g:
        ' becomes \'
        ''' becomes \'\'\'

        The opposite logic is applied when "unescaping" `quote`.

        Already escaped replacements are not escaped twice.
        This means that in a subsequent invocation, the plugin is unable to
        distinguish them from the others:
        (1) 'foo "bar" \"baz\"'   =>
        (2) "foo \"bar\" \"baz\"" =>
        (3) 'foo "bar" "baz"'

        Ideally, (1) and (3) should match, but that is not possible.

        No explicit return value.

         N/A N/A debug N/A Replace %s with %s in %s N/A quote replacement region N/A inner_text N/A N/A N/A self view substr region N/A unesc_quote replacement N/A unesc_replacement N/A N/A re sub (.) \\\g<1> unesc_quote N/A N/A debug N/A Escape: replace %s with %s N/A unesc_quote unesc_replacement N/A inner_text N/A N/A inner_text replace unesc_quote unesc_replacement N/A esc_quote N/A N/A re sub (.) \\\g<1> quote N/A esc_replacement quote N/A N/A debug N/A Unesacpe: Replace %s with %s N/A esc_quote esc_replacement N/A inner_text N/A N/A inner_text replace esc_quote esc_replacement N/A N/A N/A N/A self view replace N/A self edit region inner_text N/A N/A N/A N/A ST3 N/A N/A N/A plugin_loaded