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:
parent
d8317a1c4b
commit
95e57c8c7b
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue