Module: Kward::PromptInterface::EditorAutoClosePairs
- Included in:
- Kward::PromptInterface
- Defined in:
- lib/kward/prompt_interface/editor/auto_close_pairs.rb
Overview
Auto-close pair behavior for the built-in composer file editor.
Constant Summary collapse
- AUTO_CLOSE_PAIRS =
{ "(" => ")", "[" => "]", "{" => "}", "\"" => "\"", "'" => "'", "`" => "`" }.freeze
- AUTO_CLOSE_OPENERS =
AUTO_CLOSE_PAIRS.keys.freeze
- AUTO_CLOSE_CLOSERS =
AUTO_CLOSE_PAIRS.values.uniq.freeze
- AUTO_CLOSE_QUOTES =
["\"", "'", "`"].freeze
- WORD_CHARACTER =
/[[:alnum:]_]/.freeze