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

fix syntax hightlighting of change_prompt.rb

let's try to avoid exotic heredoc syntax that GitHub and multiple
editors cannot support, the only confirmed editor that supports
highlighting this syntax so far is 'emacs'.

it is not friendly to non-emacs users to have to deal with broken
syntax highlighting, especially when there is a less exotic and
easier syntax available.
This commit is contained in:
robert 2018-11-14 02:37:07 +01:00
parent d8317a1c4b
commit 95e57c8c7b

View file

@ -35,10 +35,8 @@ class Pry::Command::ChangePrompt < Pry::ClassCommand
if Pry::Prompt.all.key?(prompt)
_pry_.prompt = Pry::Prompt.all[prompt][:value]
else
raise(Pry::CommandError, <<MSG)
'#{prompt}' isn't a known prompt. Run `change-prompt --list` to see
the list of known prompts.
MSG
raise Pry::CommandError, "'#{prompt}' isn't a known prompt. " \
"Run `change-prompt --list` to see the list of known prompts."
end
end