forked from highlightjs/highlight.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added markup test for uppercase string sigil with heredoc
Relates to p.2 from highlightjs#730 Unfortunately, we do not distinguish s and S sigils with different interpolation rules
- Loading branch information
1 parent
e946496
commit 253f31e
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<span class="hljs-class"><span class="hljs-keyword">defmodule</span> <span class="hljs-title">Long</span></span>.Module.Name <span class="hljs-keyword">do</span> | ||
<span class="hljs-variable">@doc</span> ~S<span class="hljs-string">''</span><span class="hljs-string">' | ||
No <span class="hljs-subst">#{interpolation}</span> of any kind. | ||
\000 \x{ff} | ||
|
||
\n <span class="hljs-subst">#{\x{ff}</span>} | ||
'</span><span class="hljs-string">''</span> | ||
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">func</span></span>(a, b \\ []), <span class="hljs-symbol">do:</span> <span class="hljs-symbol">:ok</span> | ||
|
||
<span class="hljs-variable">@doc</span> ~S<span class="hljs-string">""</span><span class="hljs-string">" | ||
No <span class="hljs-subst">#{interpolation}</span> of any kind. | ||
\000 \x{ff} | ||
|
||
\n <span class="hljs-subst">#{\x{ff}</span>} | ||
"</span><span class="hljs-string">""</span> | ||
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">func</span></span>(a, b \\ []), <span class="hljs-symbol">do:</span> <span class="hljs-symbol">:ok</span> | ||
<span class="hljs-keyword">end</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule Long.Module.Name do | ||
@doc ~S''' | ||
No #{interpolation} of any kind. | ||
\000 \x{ff} | ||
|
||
\n #{\x{ff}} | ||
''' | ||
def func(a, b \\ []), do: :ok | ||
|
||
@doc ~S""" | ||
No #{interpolation} of any kind. | ||
\000 \x{ff} | ||
|
||
\n #{\x{ff}} | ||
""" | ||
def func(a, b \\ []), do: :ok | ||
end |