Skip to content

syntax: Allow escaping of doc heredocs #489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: retab spec/syntax/doc_spec.rb
  • Loading branch information
liskin committed Apr 16, 2019
commit c55138cb0cdb0c8b343d544e46d088b3bf0d6e9c
20 changes: 10 additions & 10 deletions spec/syntax/doc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def some_fun(x), do: x

it 'with double quote' do
ex = <<~'EOF'
@doc "
@doc "
doctest

iex> \"bob\"
Expand All @@ -144,7 +144,7 @@ def some_fun(x), do: x

it 'with sigil_S' do
ex = <<~'EOF'
@doc ~S(
@doc ~S(
doctest

iex> to_string("bob"\)
Expand All @@ -159,7 +159,7 @@ def some_fun(x), do: x

it 'with sigil_s' do
ex = <<~'EOF'
@doc ~s(
@doc ~s(
doctest

iex> to_string("bob"\)
Expand Down Expand Up @@ -188,13 +188,13 @@ def some_fun(x), do: x
after(:each) { VIM.command("let g:elixir_use_markdown_for_docs = 0") }

it 'doc with inline code' do
ex = <<~'EOF'
@doc """
doc with inline code `List.wrap([])`
"""
EOF
expect(ex).to include_elixir_syntax('elixirDocString', 'inline')
expect(ex).to include_elixir_syntax('markdownCode', 'wrap')
ex = <<~'EOF'
@doc """
doc with inline code `List.wrap([])`
"""
EOF
expect(ex).to include_elixir_syntax('elixirDocString', 'inline')
expect(ex).to include_elixir_syntax('markdownCode', 'wrap')
end
end
end
Expand Down