Skip to content

Commit

Permalink
[ruby mode] Support indented heredoc end token
Browse files Browse the repository at this point in the history
Closes #5727
Closes #5728
  • Loading branch information
marijnh committed Dec 29, 2018
1 parent 3c79c54 commit be9d254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mode/ruby/ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ CodeMirror.defineMode("ruby", function(config) {
}
function readHereDoc(phrase) {
return function(stream, state) {
stream.eatSpace()
if (stream.match(phrase)) state.tokenize.pop();
else stream.skipToEnd();
return "string";
Expand Down

0 comments on commit be9d254

Please sign in to comment.