1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Move a comment to proper place

This commit is contained in:
aycabta 2019-07-04 19:34:08 +09:00
parent 6fa7ed453e
commit d9f8b88b47

View file

@ -5,6 +5,7 @@ class Reline::Config
DEFAULT_PATH = '~/.inputrc' DEFAULT_PATH = '~/.inputrc'
# TODO: Control- and Meta-
KEYSEQ_PATTERN = /\\C-[A-Za-z_]|\\M-[0-9A-Za-z_]|\\C-M-[A-Za-z_]|\\M-C-[A-Za-z_]|\\e|\\[\\\"\'abdfnrtv]|\\\d{1,3}|\\x\h{1,2}|./ KEYSEQ_PATTERN = /\\C-[A-Za-z_]|\\M-[0-9A-Za-z_]|\\C-M-[A-Za-z_]|\\M-C-[A-Za-z_]|\\e|\\[\\\"\'abdfnrtv]|\\\d{1,3}|\\x\h{1,2}|./
class InvalidInputrc < RuntimeError class InvalidInputrc < RuntimeError
@ -278,7 +279,6 @@ class Reline::Config
end end
def parse_keyseq(str) def parse_keyseq(str)
# TODO: Control- and Meta-
ret = [] ret = []
str.scan(KEYSEQ_PATTERN) do str.scan(KEYSEQ_PATTERN) do
ret << key_notation_to_code($&) ret << key_notation_to_code($&)