atom / language-ruby

Ruby package for Atom
Other
100 stars 144 forks source link

Adding support for single-quoted heredocs #217

Closed djpadz closed 6 years ago

djpadz commented 6 years ago

Requirements

Description of the Change

Adding support for single-quoted heredocs. This commit contains support for the "simple" case:

a = <<'EOF'
This is \'quoted\' \\ properly.
EOF

Alternate Designs

None. This is my first venture into CoffeeScript.

Benefits

Single-quoted heredocs will be supported.

Possible Drawbacks

I can't come up with a way to do this for heredocs that have multiple inputs. Also, if I were to implement this for all of the "embedded" patterns, it would really bloat ruby.cson. I'm open to suggestions.

Applicable Issues

djpadz commented 6 years ago

Just realized that this was already covered in #212. Closing.