-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8888a
commit 2e834c8
Showing
20 changed files
with
370 additions
and
129 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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,7 @@ | ||
➊ | ||
¶ | ||
|
||
---------------------------------------------------- | ||
|
||
<span class="token entity" title="➊">&#x278a;</span> | ||
<span class="token entity" title="¶">&#182;</span> |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
"&" | ||
"&&" | ||
"<" | ||
"<<" | ||
"&lt;" | ||
">" | ||
|
||
---------------------------------------------------- | ||
|
||
<span class="token string gstring">"&amp;"</span> | ||
<span class="token string gstring">"&amp;&amp;"</span> | ||
<span class="token string gstring">"&lt;"</span> | ||
<span class="token string gstring">"&lt;&lt;"</span> | ||
<span class="token string gstring">"&amp;lt;"</span> | ||
<span class="token string gstring">"&gt;"</span> |
This file was deleted.
Oops, something went wrong.
133 changes: 133 additions & 0 deletions
133
tests/languages/groovy/string-interpolation_feature.html.test
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,133 @@ | ||
// Double quoted: interpolation | ||
"$foo" | ||
"${42}" | ||
|
||
// Triple double quoted: interpolation | ||
"""$foo""" | ||
"""${42}""" | ||
|
||
// Slashy string: interpolation | ||
/$foo/ | ||
/${42}/ | ||
|
||
// Dollar slashy string: interpolation | ||
$/$foo/$ | ||
$/${42}/$ | ||
|
||
// Double quoted: no interpolation (escaped) | ||
"\$foo \${42}" | ||
|
||
// Triple double quoted: no interpolation (escaped) | ||
"""\$foo \${42}""" | ||
|
||
// Slashy string: no interpolation (escaped) | ||
/\$foo \${42}/ | ||
|
||
// Dollar slashy string: no interpolation (escaped) | ||
$/$$foo $${42}/$ | ||
|
||
// Single quoted string: no interpolation | ||
'$foo ${42}' | ||
|
||
// Triple single quoted string: no interpolation | ||
'''$foo ${42}''' | ||
|
||
---------------------------------------------------- | ||
|
||
<span class="token comment">// Double quoted: interpolation</span> | ||
<span class="token string gstring"> | ||
" | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
foo | ||
</span> | ||
" | ||
</span> | ||
<span class="token string gstring"> | ||
" | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
<span class="token punctuation">{</span> | ||
<span class="token number">42</span> | ||
<span class="token punctuation">}</span> | ||
</span> | ||
" | ||
</span> | ||
|
||
<span class="token comment">// Triple double quoted: interpolation</span> | ||
<span class="token string gstring"> | ||
""" | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
foo | ||
</span> | ||
""" | ||
</span> | ||
<span class="token string gstring"> | ||
""" | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
<span class="token punctuation">{</span> | ||
<span class="token number">42</span> | ||
<span class="token punctuation">}</span> | ||
</span> | ||
""" | ||
</span> | ||
|
||
<span class="token comment">// Slashy string: interpolation</span> | ||
<span class="token string regex"> | ||
/ | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
foo | ||
</span> | ||
/ | ||
</span> | ||
<span class="token string regex"> | ||
/ | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
<span class="token punctuation">{</span> | ||
<span class="token number">42</span> | ||
<span class="token punctuation">}</span> | ||
</span> | ||
/ | ||
</span> | ||
|
||
<span class="token comment">// Dollar slashy string: interpolation</span> | ||
<span class="token string gstring"> | ||
$/ | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
foo | ||
</span> | ||
/$ | ||
</span> | ||
<span class="token string gstring"> | ||
$/ | ||
<span class="token expression"> | ||
<span class="token punctuation">$</span> | ||
<span class="token punctuation">{</span> | ||
<span class="token number">42</span> | ||
<span class="token punctuation">}</span> | ||
</span> | ||
/$ | ||
</span> | ||
|
||
<span class="token comment">// Double quoted: no interpolation (escaped)</span> | ||
<span class="token string gstring">"\$foo \${42}"</span> | ||
|
||
<span class="token comment">// Triple double quoted: no interpolation (escaped)</span> | ||
<span class="token string gstring">"""\$foo \${42}"""</span> | ||
|
||
<span class="token comment">// Slashy string: no interpolation (escaped)</span> | ||
<span class="token string regex">/\$foo \${42}/</span> | ||
|
||
<span class="token comment">// Dollar slashy string: no interpolation (escaped)</span> | ||
<span class="token string gstring">$/$$foo $${42}/$</span> | ||
|
||
<span class="token comment">// Single quoted string: no interpolation</span> | ||
<span class="token string">'$foo ${42}'</span> | ||
|
||
<span class="token comment">// Triple single quoted string: no interpolation</span> | ||
<span class="token string">'''$foo ${42}'''</span> |
Oops, something went wrong.